()
| 1 | function KeyboardInputManager() { |
| 2 | this.events = {}; |
| 3 | |
| 4 | if (window.navigator.msPointerEnabled) { |
| 5 | //Internet Explorer 10 style |
| 6 | this.eventTouchstart = "MSPointerDown"; |
| 7 | this.eventTouchmove = "MSPointerMove"; |
| 8 | this.eventTouchend = "MSPointerUp"; |
| 9 | } else { |
| 10 | this.eventTouchstart = "touchstart"; |
| 11 | this.eventTouchmove = "touchmove"; |
| 12 | this.eventTouchend = "touchend"; |
| 13 | } |
| 14 | |
| 15 | this.listen(); |
| 16 | } |
| 17 | |
| 18 | KeyboardInputManager.prototype.on = function (event, callback) { |
| 19 | if (!this.events[event]) { |
nothing calls this directly
no outgoing calls
no test coverage detected