pxt-ev3/libs/touch-sensor/test.ts
Peli de Halleux ea956f1a73
Buttons rename (#287)
* renaming up/down/click to released/pressed/bump

* missing images

* fixing signature issue

* updated strings

* white lego logo
2018-01-31 08:28:00 -08:00

9 lines
240 B
TypeScript

sensors.touch1.onEvent(ButtonEvent.Pressed, function () {
})
sensors.touch2.onEvent(ButtonEvent.Bumped, function () {
})
sensors.touch3.onEvent(ButtonEvent.Released, function () {
})
sensors.touch4.isPressed();
sensors.touch4.wasPressed();