()
| 3 | export class InputManager { |
| 4 | private events: { [key: string]: Function[] } = {}; |
| 5 | constructor() { |
| 6 | this.addListeners(); |
| 7 | } |
| 8 | |
| 9 | on(eventName: string, listener: Function) { |
| 10 | if (!this.events[eventName]) { |
nothing calls this directly
no test coverage detected