#1
|
|||
|
|||
Simple Joystick Question
Hi all,
I have a question concerning the joystick buttons which is probably rather easy to be answered: How can I make my script to wait for the user to press one of the two buttons of a connected joystick. My guess was: Code:
import viz import vizjoy import viztask viz.go() joystick = vizjoy.add() def WaitForButtonPress(): yield viztask.waitButtonDown(None) print "Done." viz.quit() viztask.schedule( WaitForButtonPress() ) |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
simple VRPN question | mjabon | Precision Position Tracker (PPT) | 2 | 08-25-2009 10:12 PM |
simple question? | Boombay | Vizard | 1 | 07-06-2009 10:51 AM |
Facetracking and Immersion Joystick | Vygreif | Vizard | 1 | 01-25-2006 10:56 AM |
Another Joystick Question | Plasma | Vizard | 3 | 02-03-2004 11:16 AM |
Basic Joystick Navigation Question | Plasma | Vizard | 2 | 01-29-2004 07:08 PM |