05-28-2011 11:19 AM
Hello,
When my app starts it sets the Multitouch.inputMode to MultitouchInputMode.TOUCH_POINT.
When I change that to MultitouchInputMode.GESTURE it doesn't work. When I trace Multitouch.inputMode it says that it is in gesture mode but it does not act like it. Is this a bug?
05-29-2011 01:27 AM
Is it running on the simulator? The gestures only work on real device
05-29-2011 04:02 AM
05-29-2011 05:57 AM
When you say that it doesn't act like it, what do you mean? What is it doing or not doing when you change the mode?
05-29-2011 12:02 PM
When I change Multitouch.inputMode from MultitouchInputMode.TOUCH_POINT to MultitouchInputMode.GESTURE and then read the value of trace(Multitouch.inputMode) it says that it is using gesture. But when i have an event with type TransformGestureEvent it does not dispatch it.
05-29-2011 03:13 PM
I found this: I can successfully change Multitouch.inputMode in the main class but when I change it in an external class it doesn't work always.
05-29-2011 07:35 PM
Is it because other class change the Multitouch inputMode after?
The way I would do is:
In the class, assuming it's a display object
addEventListener(Event.ADDED_TO_STAGE, onDisplay);
public function onDisplay(event:Event):void {
MultiTouch.inputMode = .....
}
06-04-2011 09:03 AM
I want it to be changed when an user clicks a button.
06-04-2011 02:45 PM
06-05-2011 04:08 AM
CoCopia wrote:
the code wouldn't be that different from MiaoMiao, place the MultiTouch.inputMode = ... inside the button click event, see how that goes.
I've already done that and got the issue described in my first post.