touched -> pressed
This commit is contained in:
parent
20d584db2b
commit
ea6bfa03bd
@ -18,8 +18,8 @@
|
|||||||
"Output.C|block": "C",
|
"Output.C|block": "C",
|
||||||
"Output.D|block": "D",
|
"Output.D|block": "D",
|
||||||
"TouchSensorEvent.Bumped|block": "bumped",
|
"TouchSensorEvent.Bumped|block": "bumped",
|
||||||
|
"TouchSensorEvent.Pressed|block": "pressed",
|
||||||
"TouchSensorEvent.Released|block": "released",
|
"TouchSensorEvent.Released|block": "released",
|
||||||
"TouchSensorEvent.Touched|block": "touched",
|
|
||||||
"control.raiseEvent|block": "raise event|from %src|with value %value",
|
"control.raiseEvent|block": "raise event|from %src|with value %value",
|
||||||
"control|block": "control",
|
"control|block": "control",
|
||||||
"input.Button.isPressed|block": "%button|is pressed",
|
"input.Button.isPressed|block": "%button|is pressed",
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
* Touch sensor interactions
|
* Touch sensor interactions
|
||||||
*/
|
*/
|
||||||
const enum TouchSensorEvent {
|
const enum TouchSensorEvent {
|
||||||
//% block="touched"
|
//% block="pressed"
|
||||||
Touched = 4,
|
Pressed = 4,
|
||||||
//% block="bumped"
|
//% block="bumped"
|
||||||
Bumped = 1,
|
Bumped = 1,
|
||||||
//% block="released"
|
//% block="released"
|
||||||
|
Loading…
Reference in New Issue
Block a user