From 03b864c35561118b0cd098d2b821909719b77dd2 Mon Sep 17 00:00:00 2001 From: Michal Moskal Date: Mon, 10 Jul 2017 11:43:50 +0100 Subject: [PATCH] Rename ButtonWrapper to Button --- libs/core/input.ts | 2 +- libs/core/ir.ts | 4 ++-- libs/core/touch.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/core/input.ts b/libs/core/input.ts index 08b6376a..59d40fd3 100644 --- a/libs/core/input.ts +++ b/libs/core/input.ts @@ -407,7 +407,7 @@ namespace input.internal { } namespace input { - export class ButtonWrapper extends control.Component { + export class Button extends control.Component { private downTime: number; private _isPressed: boolean; private _wasPressed: boolean; diff --git a/libs/core/ir.ts b/libs/core/ir.ts index dcfaac12..1ff39308 100644 --- a/libs/core/ir.ts +++ b/libs/core/ir.ts @@ -43,14 +43,14 @@ namespace input { export class IrSensor extends internal.UartSensor { private channel: IrRemoteChannel private pollRunning: boolean - private buttons: ButtonWrapper[]; + private buttons: Button[]; constructor() { super() this.channel = IrRemoteChannel.Ch0 this.buttons = [] for (let i = 0; i < 5; ++i) { - this.buttons.push(new ButtonWrapper()) + this.buttons.push(new Button()) } } diff --git a/libs/core/touch.ts b/libs/core/touch.ts index 7a552e1b..dfdf1865 100644 --- a/libs/core/touch.ts +++ b/libs/core/touch.ts @@ -1,10 +1,10 @@ namespace input { export class TouchSensor extends internal.AnalogSensor { - button: ButtonWrapper; + button: Button; constructor() { super() - this.button = new ButtonWrapper() + this.button = new Button() } _query() {