diff options
Diffstat (limited to '')
-rw-r--r-- | client/src/net/input.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/client/src/net/input.ts b/client/src/net/input.ts index 75be3e6..9b45e59 100644 --- a/client/src/net/input.ts +++ b/client/src/net/input.ts @@ -1,4 +1,5 @@ import { Key, KeyMap, PlayerInput } from "../types.js" +import { maps as definedMaps } from '../main.js' let pressed = {} @@ -62,9 +63,15 @@ export const startInputListener = (keymap: KeyMap): () => PlayerInput => { let s = start; start = false; + let maps = {} + if (s) { + maps = definedMaps + } + return { key, start: s, + maps } } } |