Module: input/keyboard
Classes
Type aliases
KeyCallback
ฦฌ KeyCallback: (pressed
: boolean
, e
: KeyboardEvent
) => void
Type declaration
โธ (pressed
, e
): void
A callback to be executed on key events.
Parameters
Name | Type |
---|---|
pressed | boolean |
e | KeyboardEvent |
Returns
void
Defined in
src/input/keyboard.ts:4