Skip to content

Commit

Permalink
add support for more clients
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Apr 19, 2022
1 parent 9e29863 commit 1054e20
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion hid-joystick/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ namespace modules {
//% weight=99
//% index.min=0
//% index.max=32
//% down.shadow=toggleUpDown
//% down.shadow=toggleDownUp
setButton(index: number, down: boolean) {
index = index | 0
if (index < 0) return
Expand Down
15 changes: 4 additions & 11 deletions hid-joystick/pxt.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,11 @@
"name": "jacdac-hid-joystick",
"version": "0.0.0",
"description": "Controls a HID joystick.",
"files": [
"constants.ts",
"client.ts"
],
"testFiles": [
"test.ts"
],
"supportedTargets": [
"maker"
],
"files": ["constants.ts", "client.ts"],
"testFiles": ["test.ts"],
"supportedTargets": ["maker", "arcade", "microbit"],
"dependencies": {
"core": "*",
"jacdac": "github:microsoft/pxt-jacdac"
}
}
}

0 comments on commit 1054e20

Please sign in to comment.