 		# Only fire if we are not already in a session
 		return if @session
 
-		@em.wrap(window).addEventListener("touchmove", @touchmove)
-		@em.wrap(window).addEventListener("touchend", @touchend)
+		@em.wrap(window).addEventListener(TouchMove, @touchmove)
+		@em.wrap(window).addEventListener(TouchEnd, @touchend)
 		@em.wrap(window).addEventListener("webkitmouseforcechanged", @_updateMacForce)
 
 		@session =


	constructor: ->
		@em = new DOMEventManager()
		@em.wrap(window).addEventListener("touchstart", @touchstart)

	destroy: ->
		@em.removeAllListeners()


{DOMEventManager} = require "./DOMEventManager"

TouchStart = "touchstart"
TouchMove = "touchmove"
TouchEnd = "touchend"

if not Utils.isTouch()
	TouchStart = "mousedown"
	TouchMove = "mousemove"
	TouchEnd = "mouseup"

Utils.sanitizeRotation = ->
	previous = null
