#1
|
|||
|
|||
Check presence of joysticks ?
Is there a way to check if any USB joysticks are plugged into the computer?
It seems when vizjoy is imported, it checks for joysticks since I get a message on the output panel NOTIFY: 0 joysticks found. Is there a way to intercept this notification? Thanks in advance |
#2
|
|||
|
|||
The following code shows how to detect all the attached joysticks:
Code:
import vizjoy joysticks = [] while True: joy = vizjoy.add() if joy.valid(): joysticks.append(joy) else: break print len(joysticks),'joysticks detected' |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Check if an avatar has a state "123" | Josh | Vizard | 1 | 04-06-2010 01:11 PM |
2 Joysticks / requirements | Sandro Holzer | Vizard | 1 | 01-13-2009 04:32 PM |