downDuration(duration) โ {boolean}
Returns true
if the Key was pressed down within the duration
value given, or false
if it either isn't down,
or was pressed down longer ago than then given duration.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
duration | number | <optional> | 50 | The duration within which the key is considered as being just pressed. Given in ms. |
Returns
boolean -
True if the key was pressed down within the given duration.
- Source code: input/Key.js (Line 253)
Please login to continue.