11-07-2012 05:58 AM
I'd like to know if there is any way of checking the maximum number of touches (say with something similar to screen_get_event_property_iv) on the device.
screen_get_event_property_iv(screen_event, SCREEN_PROPERTY_TOUCH_ID, &id);
allows me to get the ID of the current ID. Is this an ID that corresponds to the touch (so, if there are for example 10 touches, id will be between 0 and 9) or does it keep growing? (for example, every time a new finger pops in, the id increases, and it might go up to any value, as long as new touches keep coming in).
From my testing, it appears the id doesn't grow, just sticks to the same set of values, and the BB Playbook only supports up to 4 simultaneous touches, but I'd like to be able to query the number of touches nonetheless.
If anyone has any answers I will be very thankful.
Solved! Go to Solution.
11-07-2012 06:44 AM
i think, the max number of touches is 4
you can check out an example here:
11-07-2012 06:56 AM
11-07-2012 09:02 AM
the max count of points for all platforms are 10 + 1 , ten fingers + one nose.
ID will not increase , beacuse a pair of touch_down and touch_up must be matched through the same ID.
11-07-2012 03:24 PM
A great question!
It was 4 on PlayBook and may be >4 on newer devices. Designing for 4 would be a good idea for now since you want your app to be usable on all devices.
I'm forwarding this request along to the libscreen folks, as they already know internally what the max # is.. it is just not exposed in any convenient way. As a general rule, and as the APIs evolve, we want to be able to put as much information in the developer's hands as possible.
That being said, nothing stops your awesome multitouch app from doing something similar to what we see with analog joystick calibration... have your app start with a "press as many fingers on the screen as you can" message and sample the max by yourself until a handy SCREEN_PROPERTY_MAX_MTOUCH or similar is available.