justReleased(duration) → {boolean}
Returns the "just released" state of this button.
Just released is considered as being true if the button was released within the duration given (default 250ms).
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
duration | number | <optional> | 250 | The duration in ms below which the button is considered as being just released. |
Returns
boolean -
True if the button is just released otherwise false.
- Source code: input/DeviceButton.js (Line 244)
Please login to continue.