Function isKeyboardKeyDown
-
Parameters
- input: KeyboardInput
The state returned by createKeyboardInput.
- code: string
A KeyboardEvent.code value, independent of keyboard layout.
Returns boolean
Whether the key is currently held.
- input: KeyboardInput
Read one physical key's held state.