Creates a new key manager.
Optional
config: KeyManagerConfigThe configuration for the key manager.
Adds or updates a key binding.
The id of the key binding.
The key associated with the binding.
Optional
fn: ((dt: number) => void)The function executed when the binding is pressed
Adds or updates multiple key bindings.
An array of key binding objects.
Use addKey instead.
Readonly
bindsThe key bindings
Adds or updates a key binding.
The id of the key binding.
The key associated with the binding.
Optional
fn: ((dt: number) => void)The function executed when the binding is pressed
Adds or updates multiple key bindings.
An array of key binding objects.
Game keys manager for handling key bindings and tracking pressed keys.