Rename ButtonWrapper to Button
This commit is contained in:
parent
6b5dd6c07b
commit
03b864c355
@ -407,7 +407,7 @@ namespace input.internal {
|
|||||||
}
|
}
|
||||||
|
|
||||||
namespace input {
|
namespace input {
|
||||||
export class ButtonWrapper extends control.Component {
|
export class Button extends control.Component {
|
||||||
private downTime: number;
|
private downTime: number;
|
||||||
private _isPressed: boolean;
|
private _isPressed: boolean;
|
||||||
private _wasPressed: boolean;
|
private _wasPressed: boolean;
|
||||||
|
@ -43,14 +43,14 @@ namespace input {
|
|||||||
export class IrSensor extends internal.UartSensor {
|
export class IrSensor extends internal.UartSensor {
|
||||||
private channel: IrRemoteChannel
|
private channel: IrRemoteChannel
|
||||||
private pollRunning: boolean
|
private pollRunning: boolean
|
||||||
private buttons: ButtonWrapper[];
|
private buttons: Button[];
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
super()
|
super()
|
||||||
this.channel = IrRemoteChannel.Ch0
|
this.channel = IrRemoteChannel.Ch0
|
||||||
this.buttons = []
|
this.buttons = []
|
||||||
for (let i = 0; i < 5; ++i) {
|
for (let i = 0; i < 5; ++i) {
|
||||||
this.buttons.push(new ButtonWrapper())
|
this.buttons.push(new Button())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
namespace input {
|
namespace input {
|
||||||
export class TouchSensor extends internal.AnalogSensor {
|
export class TouchSensor extends internal.AnalogSensor {
|
||||||
button: ButtonWrapper;
|
button: Button;
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
super()
|
super()
|
||||||
this.button = new ButtonWrapper()
|
this.button = new Button()
|
||||||
}
|
}
|
||||||
|
|
||||||
_query() {
|
_query() {
|
||||||
|
Loading…
Reference in New Issue
Block a user