Creates a new key manager.
Optionalconfig: KeyManagerConfigThe configuration for the key manager.
Adds or updates a key binding.
The id of the key binding.
The key associated with the binding.
Optionalfn: ((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.
ReadonlybindsThe key bindings
Adds or updates a key binding.
The id of the key binding.
The key associated with the binding.
Optionalfn: ((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.