Aktualisierungen.
This commit is contained in:
parent
b61693056a
commit
00fd6808ca
@ -34,6 +34,6 @@
|
|||||||
"GroveJoystickKey.LR|block": "Unten rechts",
|
"GroveJoystickKey.LR|block": "Unten rechts",
|
||||||
"GroveJoystickKey.Press|block": "Gedrückt",
|
"GroveJoystickKey.Press|block": "Gedrückt",
|
||||||
"grove.strip.read|block": "%strip|lies Position von Joystick an|%xpin|und|%ypin",
|
"grove.strip.read|block": "%strip|lies Position von Joystick an|%xpin|und|%ypin",
|
||||||
"grove.onJoystick|block": "wenn Grove - Joysticktaste|%key",
|
"grove.onJoystick|block": "wenn Grove - Joysticktaste|%key an|%xpin|und|%ypin",
|
||||||
"grove.getJoystick|block": "hole Joysticktaste an|%xpin|und|%ypin"
|
"grove.getJoystick|block": "hole Joysticktaste an|%xpin|und|%ypin"
|
||||||
}
|
}
|
2
main.ts
2
main.ts
@ -548,7 +548,7 @@ namespace grove {
|
|||||||
* @param ypin
|
* @param ypin
|
||||||
* @param handler code to run
|
* @param handler code to run
|
||||||
*/
|
*/
|
||||||
//% blockId=grove_joystick_create_event block="on Key|%key at|%xpin|and|%xpin"
|
//% blockId=grove_joystick_create_event block="on Key|%key at|%xpin|and|%ypin"
|
||||||
export function onJoystick(key: GroveJoystickKey, xpin: AnalogPin, ypin: AnalogPin, handler: () => void) {
|
export function onJoystick(key: GroveJoystickKey, xpin: AnalogPin, ypin: AnalogPin, handler: () => void) {
|
||||||
control.onEvent(joystickEventID, key, handler);
|
control.onEvent(joystickEventID, key, handler);
|
||||||
control.inBackground(() => {
|
control.inBackground(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user