diff options
author | Tyler Murphy <tylerm@tylerm.dev> | 2023-06-29 21:52:26 -0400 |
---|---|---|
committer | Tyler Murphy <tylerm@tylerm.dev> | 2023-06-29 21:52:26 -0400 |
commit | 484409b64d0a1dadcf35fa664ecf3dcd4808a83a (patch) | |
tree | ba9bd26d0914f369d3eafa8a04b12bec69a70fcc /client/src/net/input.ts | |
parent | when players die, they should acutally fucking die (diff) | |
download | tuxman-484409b64d0a1dadcf35fa664ecf3dcd4808a83a.tar.gz tuxman-484409b64d0a1dadcf35fa664ecf3dcd4808a83a.tar.bz2 tuxman-484409b64d0a1dadcf35fa664ecf3dcd4808a83a.zip |
custom map overrides
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 } } } |