![]() |
|
|
|
#1
|
|||
|
|||
|
The joystick.py example script exits if a DirectInput device is not connected:
If both the display and sensor cables of the Oculus are not connected getSensor will return None: Code:
import oculus hmd = oculus.Rift() if hmd.getSensor() is None: print 'Rift not connected' |
![]() |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PPT cameras not connected | sisun1030 | Precision Position Tracker (PPT) | 0 | 03-05-2010 09:02 AM |
| Bluetooth Devices for Wiimote | envisC | Vizard | 3 | 10-27-2009 12:09 PM |
| Multiple Sound Devices | GiudiceLab | Vizard | 2 | 06-06-2009 11:29 AM |
| two haptic devices | SSophia | Vizard | 3 | 07-07-2008 03:42 PM |
| game devices | jkelly | Vizard | 10 | 03-27-2007 03:16 AM |