Constructors
constructor
- new InputManager<T>(window, keybinds): InputManager<T>
-
Parameters
-
window: Window
-
keybinds: T
Properties
Private
keybinders
keybinders: { [K in string | number | symbol]: KeyBinder<T[K]>}
Private
keybinds
keybinds: T
Methods
getKeybinder
- getKeybinder<Key>(key): {
[K in string | number | symbol]: KeyBinder<T[K]>
}[Key]
-
Type Parameters
-
Key extends string | number | symbol
Returns {
[K in string | number | symbol]: KeyBinder<T[K]>
}[Key]
updateKeyBinds
- updateKeyBinds(): void
-
Returns void