uchPos.reset(event.offsetX, event.offsetY);
			leftVector.copyFrom(leftTouchPos);
			leftVector.minusEq(leftTouchStartPos);
		}
		else{
			rightTouchPos.reset(event.offsetX, event.offsetY); 
			rightVector.copyFrom(rightTouchPos); 
			rightVector.minusEq(rightTouchStartPos); 	
		}
		sendFlag = true;
	}
	
}
 
function onTouchEnd(e) { 
   
   	touches = e.touches; 

	for(var i = 0; i<e.changedTouches.length; i++){
		var touch =e.changedTouches[i]; 
		if(leftTouchID == touch.identifier)
		{
			leftTouchID = -1