implement wasPressed
This commit is contained in:
1 parent
71479d0caa
commit
b57ae5d588
1 file changed
+1
@@ -68,6 +68,7 @@ namespace brick {
|
||||
_update(curr: boolean) {
|
||||
if (this._isPressed == curr) return
|
||||
this._isPressed = curr
|
||||
if (curr) this._wasPressed = true;
|
||||
if (curr) {
|
||||
this.downTime = control.millis()
|
||||
control.raiseEvent(this._id, ButtonEvent.Down)
|
||||
|
||||
Reference in new issue
Block a user