Aktualisierungen.

This commit is contained in:
Michael Klein 2019-11-13 15:23:39 +01:00
parent 1d6a6a7f2c
commit a23405acef
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@
"GroveJoystickKey.LL|block": "Unten links", "GroveJoystickKey.LL|block": "Unten links",
"GroveJoystickKey.LR|block": "Unten rechts", "GroveJoystickKey.LR|block": "Unten rechts",
"GroveJoystickKey.Press|block": "Gedrückt", "GroveJoystickKey.Press|block": "Gedrückt",
"grove.grove_joystick_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",
"grove.getJoystick|block": "hole Joysticktaste an|%xpin|und|%ypin" "grove.getJoystick|block": "hole Joysticktaste an|%xpin|und|%ypin"
} }

View File

@ -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" //% blockId=grove_joystick_create_event block="on Key|%key at|%xpin|and|%xpin"
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(() => {