diff options
Diffstat (limited to 'src/view/InputHandler.ts')
-rw-r--r-- | src/view/InputHandler.ts | 4 |
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()); } |