Block-friendly buttons

This commit is contained in:
Michal Moskal
2017-07-10 14:26:19 +01:00
parent 36050de253
commit df45cb98ef
4 changed files with 37 additions and 6 deletions

View File

@ -21,5 +21,8 @@ namespace input {
}
//% whenUsed
export const touch: TouchSensor = new TouchSensor()
export const touchSensorImpl: TouchSensor = new TouchSensor()
//% whenUsed
export const touchSensor: Button = touchSensorImpl.button
}