FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Problem with multi-touch in 3D space

2 posters

Go down

Problem with multi-touch in 3D space Empty Problem with multi-touch in 3D space

Post  Francescu 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

Back to top Go down

Problem with multi-touch in 3D space Empty Re: Problem with multi-touch in 3D space

Post  sio2interactive Sat Apr 18, 2009 10:05 pm

Make sure that you enable multi-touch:

[ self setMultipleTouchEnabled:YES ];

Check tutorial05 for more info...
sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

Problem with multi-touch in 3D space Empty Re: Problem with multi-touch in 3D space

Post  Francescu 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

Back to top Go down

Problem with multi-touch in 3D space Empty Re: Problem with multi-touch in 3D space

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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