Move buttons to TS

This commit is contained in:
Michal Moskal
2017-07-10 14:16:31 +01:00
parent 17488b5c6b
commit 768e8c60f5
11 changed files with 224 additions and 372 deletions

View File

@ -43,7 +43,7 @@ namespace input {
export class IrSensor extends internal.UartSensor {
private channel: IrRemoteChannel
private pollRunning: boolean
private buttons: ButtonTS[];
private buttons: Button[];
constructor() {
super()
@ -52,7 +52,7 @@ namespace input {
// otherwise button events won't work
this.mode = IrSensorMode.RemoteControl
for (let i = 0; i < 5; ++i) {
this.buttons.push(new ButtonTS())
this.buttons.push(new Button())
}
}