02-24-2011 11:38 AM
I want the user to be able to press two or more buttons in my app at the same time to trigger events, is there any special event listeners for this or will onMouseDown handle it just fine?
02-24-2011 11:55 AM
Multi-touch isn't supposed in the simulator at this time. That might change how you want to implement things in your app (i.e. with only single touch instead). If I recall correctly, you need to listen for TOUCH events instead of MOUSE events if you do want to pursue implementing it. I was thinking there was another step that was needed as well - meaning that TOUCH events don't happen without doing something else first.
Hopefully that helps, a little anyway.
02-24-2011 12:02 PM
02-24-2011 12:14 PM
theres a section in the developer guide for the playbook that can help you out a little:
but keep in mind there is no way to test for this until the sim is update or the device comes out (whichever comes first). good luck!
02-24-2011 04:40 PM
So, I have a question:
If all my event listeners (of which listen for "click" events) listen for MOUSEDOWN events, will this translate exactly the same as a TOUCH event?? because I mean....the whole interface is touch, but is there a difference? or is it just named that for the sake of not confusing...since we all develop using the Simulator/physical mouse.
02-24-2011 04:43 PM
from what i've read, the mouse inputs will be taken in as single touch points. unless your application is specifically listening for touch events, it will take ur mouse inputs as on finger tap kind of events. also i've read if your app only requires on touch point at any given time, then you should stick to mouse listeners because of the reduced overhead.
02-24-2011 07:23 PM
There do exist AIR API's for multitouch - just google for "AIR multitouch API" & dig in.
Am guessing we'll get access to these on PlayBook on first release devices - mimicking them in the simulator takes some design on RIM's part (which I'd guess they are working on). Other platforms' emulators use e.g. some key combinations w/the mouse click to emulate e.g. 2 finger pinch to zoom.
"You can emulate two-finger, multiple-touch events in your desktop app by holding down the CTRL key and moving your mouse within the app's window. The second touch event is mirrored across the X/Y axis from the mouse location."