summaryrefslogtreecommitdiffstats
path: root/src/view/input
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2018-11-09 15:12:26 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2018-11-09 15:12:26 +0100
commit266d627597b9e241f9a2c0e2b17c1ab413a577c6 (patch)
treebc5118317ab922e2d42de94254771718623443ca /src/view/input
parentd5ba38869897f7904edf6f6f57dd1ce17eff5368 (diff)
downloadrpgedit-266d627597b9e241f9a2c0e2b17c1ab413a577c6.tar
rpgedit-266d627597b9e241f9a2c0e2b17c1ab413a577c6.zip
Use Record type where applicable
Diffstat (limited to 'src/view/input')
-rw-r--r--src/view/input/gameinput.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/view/input/gameinput.ts b/src/view/input/gameinput.ts
index f3066e3..67fbe0c 100644
--- a/src/view/input/gameinput.ts
+++ b/src/view/input/gameinput.ts
@@ -10,7 +10,7 @@ export enum ButtonCode {
Menu,
}
-const buttonMapping: {[key: string]: ButtonCode} = {
+const buttonMapping: Record<string, ButtonCode> = {
KeyZ: ButtonCode.Action,
KeyX: ButtonCode.Back,
KeyC: ButtonCode.Menu,