(event, funcName)
| 212 | |
| 213 | // make own touch events callbacks |
| 214 | var touchEventProcess = function (event, funcName) { |
| 215 | var rect = Module["canvas"].getBoundingClientRect(); |
| 216 | var coords = getPos(event, rect); |
| 217 | if (event.isPrimary && pointerCounter == 1) { |
| 218 | Browser.mouseX = coords.x; |
| 219 | Browser.mouseY = coords.y; |
| 220 | } |
| 221 | Module.ccall(funcName, 'number', ['number', 'number', 'number'], |
| 222 | [event.pointerId, coords.x, coords.y]); |
| 223 | } |
| 224 | |
| 225 | // main event func determine what to call |
| 226 | var oldCalcMovementFunction = Browser.calculateMouseEvent; |
no test coverage detected