examples/common/touch-emulator.js
function getActiveTouches(mouseEv, eventName) {
        // empty list
        if (mouseEv.type == 'mouseup') {
            return new TouchList();
        }

        var touchList = createTouchList(mouseEv);
        if(isMultiTouch && mouseEv.type != 'mouseup' && eventName == 'touchend') {
            touchList.splice(1, 1);
        }
        return touchList;
    }
function getActiveTouches(mouseEv, eventName) {
        // empty list
        if (mouseEv.type == 'mouseup') {
            return new TouchList();
        }

        var touchList = createTouchList(mouseEv);
        if(isMultiTouch && mouseEv.type != 'mouseup' && eventName == 'touchend') {
            touchList.splice(1, 1);
        }
        return touchList;
    }
function getActiveTouches ( mouseEv , eventName ) { // empty list if ( mouseEv . type == 'mouseup' ) { return new TouchList ( ) ; } var touchList = createTouchList ( mouseEv ) ; if ( isMultiTouch && mouseEv . type != 'mouseup' && eventName == 'touchend' ) { touchList . splice ( 1 , 1 ) ; } return touchList ; }
receive all active touches
@param mouseEv
@returns {TouchList}
receive all active touches