Newbie: Multitouch
3 posters
Newbie: Multitouch
Hi,
I am trying to determine, if the user has one or two fingers touching the iPhone/iPod touch. So far, all I get is an event in "templateScreenTap" or "templateScreenTouchMove" respectively. When I now read sio2 -> _SIO2window -> n_tap, I seem to get the number of "clicks" performed and when I read sio2 -> _SIO2window -> n_touch, I always get 1, no matter if one finger touches the screen or two and no matter if I run the program in the simulator or on the device. Is this a bug or do I need to tell SIO that I'd like to receive information on multi touch events? How would I do this?
I have taken a look at the tutorials and the emitter tutorial (sorry, forgot the number!) seems to use the n_tap/n_touch field, but I couldn't use the feature; i.e. no difference if I touch the screen with two fingers or one...
Thanks for any help!
Philipp
I am trying to determine, if the user has one or two fingers touching the iPhone/iPod touch. So far, all I get is an event in "templateScreenTap" or "templateScreenTouchMove" respectively. When I now read sio2 -> _SIO2window -> n_tap, I seem to get the number of "clicks" performed and when I read sio2 -> _SIO2window -> n_touch, I always get 1, no matter if one finger touches the screen or two and no matter if I run the program in the simulator or on the device. Is this a bug or do I need to tell SIO that I'd like to receive information on multi touch events? How would I do this?
I have taken a look at the tutorials and the emitter tutorial (sorry, forgot the number!) seems to use the n_tap/n_touch field, but I couldn't use the feature; i.e. no difference if I touch the screen with two fingers or one...
Thanks for any help!
Philipp
Beren77- Posts : 2
Join date : 2009-02-15
Re: Newbie: Multitouch
Check tutorial05 for more info but..., by default application can receive a single touch only, you need to enable multi touch in your application by calling:
[ self setMultipleTouchEnabled:YES ];
inside initWithCoder or other appropriate location...
[ self setMultipleTouchEnabled:YES ];
inside initWithCoder or other appropriate location...
Re: Newbie: Multitouch
Aah! I thought that I had missed some obvious setting. Thanks! That settles the problem.
Beren77- Posts : 2
Join date : 2009-02-15
Re: Newbie: Multitouch
Out of curiosity, after enabling multi-touch, is it possible for sio2 to recieve multi-touch events.
I thought sio2 was hard coded to 1 finger gestures
.
--matthew
I thought sio2 was hard coded to 1 finger gestures
.
--matthew
matthew- Posts : 64
Join date : 2008-11-12
Re: Newbie: Multitouch
Checkout the latest revision on SVN... It support 5 (default) simultaneous touch and events callback (and more if you increase the number...)
Similar topics
» New Multitouch
» "Background" actions. - Newbie question
» Newbie question about decompression
» Default Blender cube rendered incorrectly (NewBie)
» Newbie question, code signing error when trying to run tutorial1
» "Background" actions. - Newbie question
» Newbie question about decompression
» Default Blender cube rendered incorrectly (NewBie)
» Newbie question, code signing error when trying to run tutorial1
Permissions in this forum:
You cannot reply to topics in this forum