Multiple gesture problem with native touch events
Posted: 04 November 2011 08:22 PM   [ Ignore ]
Avatar
Rank
Joined  2011-02-03
Total Posts:  6
New Member

Hi.

As you know it’s not possible to trigger multiple Gestures with the native touch events in flash. So i can’t rotate and scale at the same time while using the
TransformGestureEvent.GESTURE_ZOOM
and
TransformGestureEvent.GESTURE_ROTATE
events.

Is there a way to create a own rotate and scale function out of the simple, native touch events?
I don’t want to use a framework like gestureworks and i want to stick to the native flash-touch/gesture-events for my current project.
So, perhaps you have a hint or solution for me.

 Signature 

Current project:
http://www.makingthegame.de available in german and english - a blog about creating a multi-touch flash game.
(change to english in the upper right corner)

Profile
 
 
Posted: 06 November 2011 07:43 PM   [ Ignore ]   [ # 1 ]
Avatar
RankRank
Joined  2009-05-06
Total Posts:  137
Member

Here is a pretty dirty port of TouchLib’s RotatableScalable class that I did for native touch events for a project I’m working on. It works but its pretty rough so there’s plenty that needs to be tidied up…

http://www.purplesquirrels.com.au/blogstuff/rotatablescalable/RotatableScalable.as

EDIT: note that this requires the input mode to be MultitouchInputMode.TOUCH_POINT, which means you can’t use any of the built in gestures

 Signature 

web: http://www.nemenvisual.com
blog: http://www.purplesquirrels.com.au

Profile
 
 
Posted: 08 November 2011 05:46 AM   [ Ignore ]   [ # 2 ]
Avatar
Rank
Joined  2011-02-03
Total Posts:  6
New Member

Thanks.
I don’t have to use the built in Gestures - i just need a rotate-scale gesture and thats an nice way to realize it. wink
But i think i will rewrite this class a bit.

 Signature 

Current project:
http://www.makingthegame.de available in german and english - a blog about creating a multi-touch flash game.
(change to english in the upper right corner)

Profile