Skip to content

1681-engine / index / keymapStorage

Function: keymapStorage() ​

ts
function keymapStorage(key): object;

Defined in: src/input/Keymap.ts:190

A place to keep a keymap in the browser, under a key the game names; every failure falls back quietly.

Parameters ​

ParameterType
keystring

Returns ​

object

clear() ​

ts
clear(): void;

Returns ​

void

read() ​

ts
read(): unknown;

Returns ​

unknown

write() ​

ts
write(binds): void;

Parameters ​

ParameterType
bindsobject

Returns ​

void

Released under the MIT License.