![]() |
|
#2
|
|||
|
|||
|
You can use a callback for sensor events to be notified when a button is pressed. Is this what you are looking for?
Code:
def onSensorDown(e):
if e.object is tracker:
print 'Button',e.button,'down'
viz.callback(viz.SENSOR_DOWN_EVENT,onSensorDown)
def onSensorUp(e):
if e.object is tracker:
print 'Button',e.button,'up'
viz.callback(viz.SENSOR_UP_EVENT,onSensorUp)
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Properly aligning the intersense with the PPT Systems Z Axis | shivanangel | Precision Position Tracker (PPT) | 0 | 11-10-2009 12:35 PM |
| world is tilting - intersense or code problem? | billjarrold | Vizard | 2 | 11-06-2009 09:03 AM |
| intersense with 5DT glove | sjp | Vizard | 2 | 04-06-2009 08:22 AM |
| using demo with intersense | G-Chan | Vizard | 1 | 02-06-2006 03:05 PM |
| intersense orientation | jargon | Vizard | 2 | 05-14-2005 05:55 PM |