![]() |
|
#3
|
|||
|
|||
|
Yes,
I have taken a look at this section and it does cover how the sensor_down and up event work. However, in the example given it maps a button from a joystick to a variable and then checks if that is the object in question. With the wiimote, you have a section in the reference which specifies <wii>.BUTTON_LEFT <wii>.BUTTON_A ... when setting up my conditional statement what do I put in there to check the event. I looked and saw that an event is being returned as 'e' in the callback, then when I did e.object, it told me : __main__._WiimoteSensor(0) So it is returning a WiimoteSensor, however how do I access what button from the sensor is being pressed? All buttons return the same __main__._WiimoteSensor(0) for the sensor, so I need to go a level deeper to do my check. How do I do this? Thank You, George |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Strange Wii Mote error... | shivanangel | Vizard | 8 | 02-18-2009 01:32 PM |
| Using Window Buttons | Uttama_vizard | Vizard | 2 | 01-16-2008 11:25 AM |
| Buttons Not rendering to both Eyes in 3d | shivanangel | Vizard | 2 | 05-24-2007 07:58 AM |
| Vanda(Wanda) buttons | giancamati | Vizard | 1 | 12-07-2006 11:21 AM |