Problem with multi-touch in 3D space

View previous topic View next topic Go down

Problem with multi-touch in 3D space

Post  Francescu on Sat Apr 18, 2009 7:39 pm

If I use tutorial05 and place the following code below in templateScreenTap(), it works fine when I press the display with 2 fingers

Code:
void templateScreenTap( void *_ptr, unsigned char _state )
{
   if (sio2->_SIO2window->n_touch > 1)
   {
      printf("\nMulti-touch is working...\n" );
   }
...
...

If I place the same code with tutorial14, the printf() will never get executed when I press with 2 fingers (I verified by stepping in with gdb)

The only difference I see is that in tutorial05, it is in 2D space pretty much all the time.

Any idea why multi-touch does not trigger in 3D space as I tried with tutorial14?

Thanks

--Frank

Francescu

Posts : 136
Join date : 2009-03-18

View user profile

Back to top Go down

Re: Problem with multi-touch in 3D space

Post  sio2interactive on Sat Apr 18, 2009 10:05 pm

Make sure that you enable multi-touch:

[ self setMultipleTouchEnabled:YES ];

Check tutorial05 for more info...

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: Problem with multi-touch in 3D space

Post  Francescu on Sun Apr 19, 2009 1:39 am

Dang - I feel so stupid. Thanks man.

I was using tutorial13_1 to emulate touch on the device for my app and of course it was working as it is enabled in tutorial13_1 ;-)

Francescu

Posts : 136
Join date : 2009-03-18

View user profile

Back to top Go down

Re: Problem with multi-touch in 3D space

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum