Methods
getHeldTime
- getHeldTime(key: Key): number
-
Parameters
Returns number
isKeyJustPressed
- isKeyJustPressed(key: Key): boolean
-
Parameters
Returns boolean
isKeyJustReleased
- isKeyJustReleased(key: Key): boolean
-
Parameters
Returns boolean
isKeyPressed
- isKeyPressed(key: Key): boolean
- isKeyPressed(key: Key): boolean
-
Parameters
Returns boolean
-
Parameters
Returns boolean
Returns how long the key has been held (0 if it's not held) in seconds.