widgets taping

View previous topic View next topic Go down

widgets taping

Post  _-MADMAN-_ on Mon May 25, 2009 3:38 am

Hi,

I'm using widgets for accelerate and break buttons on the screen. I have played around with sio2widgettapup and tapdown...


Code:
      sio2WidgetRender( acc_widget, sio2->_SIO2window, 0 );
      sio2ResourceUpdateAllWidgetBoundaries( sio2->_SIO2resource, sio2->_SIO2window );
      
      if(acc_widget->_SIO2widgettapdown)
      {
         acc_material->diffuse->w = 1.0f;
      }

But nothing happends - should I eneble states or something? I can't find tutorial with interactive widgets.

Anyway - I'm not sure how to use:


Code:
00145 typedef void( SIO2widgettapdown( void *, void *, vec2 * ) );
00146
00147 typedef void( SIO2widgettapup( void *, void *, vec2 * ) );


Can You show me right direction?

Regards,
Mad

_-MADMAN-_

Posts : 52
Join date : 2009-04-23

View user profile

Back to top Go down

Re: widgets taping

Post  sio2interactive on Mon May 25, 2009 3:43 am

Check tutorial07...

_________________
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: widgets taping

Post  _-MADMAN-_ on Mon May 25, 2009 3:46 am

Embarassed

Missed that one... thanks.

_-MADMAN-_

Posts : 52
Join date : 2009-04-23

View user profile

Back to top Go down

Re: widgets taping

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