refactored remote button

This commit is contained in:
Peli de Halleux
2017-10-26 21:10:37 -07:00
parent 21b34cb459
commit 215e846a54
7 changed files with 115 additions and 47 deletions

View File

@ -36,12 +36,12 @@ input.touchSensor1.onEvent(TouchSensorEvent.Bumped, () => {
num++
})
input.remoteTopLeft.onEvent(ButtonEvent.Click, () => {
input.remoteButtonTopLeft.onEvent(ButtonEvent.Click, () => {
screen.print("TOPLEFT " + num, 10, 60)
num++
})
input.remoteTopRight.onEvent(ButtonEvent.Down, () => {
input.remoteButtonTopRight.onEvent(ButtonEvent.Down, () => {
screen.print("TOPRIGH " + num, 10, 60)
num++
})