Skip to content

lightgun-poc / lib/input / createKeyboard

Function: createKeyboard() ​

createKeyboard(lib?): Promise<KeyboardLike>

Defined in: lib/input.ts:62

Creates the real keyboard behind the KeyboardLike interface. Each key of a combo is toggled individually (modifiers included) so press-and-hold works; names are libnut's, validated at config load in lib/buttons.

Parameters ​

lib? ​

LibNut

Injected addon; loaded from disk (or the SEA blob) when omitted.

Returns ​

Promise<KeyboardLike>

Released under the MIT License.