#1
|
|||
|
|||
IS-900 Wand Data
Hi All,
I am unable to retrieve button data from my IS-900 Simtracker wand. When using the following commands: Code:
isense = viz.add('intersense.dle') wandTracker = isense.addTracker(port=4,station=2) def printData(): print wandTracker.getData() vizact.onkeydown('p',printData) |
#2
|
|||
|
|||
You should be able to use the standard extension sensor button methods for accessing the wand button data.
From the Sensor basics documentation page: Code:
<extSensor>.buttonState() - Get the state of the buttons as a bit flag. <extSensor>.buttonCount() - Get the number of buttons on sensor. <extSensor>.isButtonDown(button) - Returns whether the specified button is currently down. viz.SENSOR_DOWN_EVENT - Called when a sensor button is pressed. viz.SENSOR_UP_EVENT - Called when a sensor button is released. |
#3
|
|||
|
|||
Extension sensor methods do the trick, thanks.
|
|
|