Note: I originally posted this as a question in the developer support forum(http://developer.anscamobile.com/forum/2011/11/02/detect-multitouch-capability), but I now realize that this is an important feature missing from the API, so I’m re-posting it as a feature request.
It could be very useful if we can detect during runtime if multitouch was successfully activated. Maybe the best solution to this is if system.activate() could return a boolean. Something like this:
[code]
–[[ Pseudo-code:
–(This doesn’t really work, since the system.activate API doesn’t --return anything, but it should explain what I’m trying to accomplish)
–]]
–again, I know the next line is not supposed to work…
local multiTouchIsOn = system.activate(“multitouch”);
if multiTouchIsOn then
–Multitouch is working on this device, use pinch zoom
else
–No multitouch available on this device, draw a zoom slider
end
[/code] [import]uid: 33608 topic_id: 17240 reply_id: 317240[/import]