summaryrefslogtreecommitdiffstats
path: root/src/view/InputHandler.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/view/InputHandler.ts')
-rw-r--r--src/view/InputHandler.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/view/InputHandler.ts b/src/view/InputHandler.ts
index dcfd85d..86d4ec6 100644
--- a/src/view/InputHandler.ts
+++ b/src/view/InputHandler.ts
@@ -7,9 +7,9 @@ import Direction from '../model/Direction';
class InputHandler {
keys: {[key: number]: boolean} = {};
- listeners: (() => void)[] = [];
+ private listeners: (() => void)[] = [];
- private callListeners() {
+ private callListeners(): void {
this.listeners.forEach(l => l());
}