diff --git a/src/org/gestouch/input/MouseInputAdapter.as b/src/org/gestouch/input/MouseInputAdapter.as index ebd7420..0a34d89 100644 --- a/src/org/gestouch/input/MouseInputAdapter.as +++ b/src/org/gestouch/input/MouseInputAdapter.as @@ -85,7 +85,7 @@ package org.gestouch.input var touch:Touch = _touchesManager.getTouch(PRIMARY_TOUCH_POINT_ID); touch.x = event.stageX; touch.y = event.stageY; - //TODO: time update vs begin time + touch.time = getTimer(); _gesturesManager.gestouch_internal::onTouchMove(touch); } @@ -106,7 +106,7 @@ package org.gestouch.input var touch:Touch = _touchesManager.getTouch(PRIMARY_TOUCH_POINT_ID); touch.x = event.stageX; touch.y = event.stageY; - //TODO: time update vs begin time + touch.time = getTimer(); _gesturesManager.gestouch_internal::onTouchEnd(touch); diff --git a/src/org/gestouch/input/TouchInputAdapter.as b/src/org/gestouch/input/TouchInputAdapter.as index f4ca4c6..e1b7263 100644 --- a/src/org/gestouch/input/TouchInputAdapter.as +++ b/src/org/gestouch/input/TouchInputAdapter.as @@ -105,7 +105,15 @@ package org.gestouch.input touch.sizeX = event.sizeX; touch.sizeY = event.sizeY; touch.pressure = event.pressure; - //TODO: time update vs begin time + //TODO: conditional compilation? + if (event.hasOwnProperty("timestamp")) + { + touch.time = event["timestamp"]; + } + else + { + touch.time = getTimer(); + } _gesturesManager.gestouch_internal::onTouchMove(touch); } @@ -128,7 +136,15 @@ package org.gestouch.input touch.sizeX = event.sizeX; touch.sizeY = event.sizeY; touch.pressure = event.pressure; - //TODO: time update vs begin time + //TODO: conditional compilation? + if (event.hasOwnProperty("timestamp")) + { + touch.time = event["timestamp"]; + } + else + { + touch.time = getTimer(); + } _gesturesManager.gestouch_internal::onTouchEnd(touch);