View Single Post
  #2  
Old 07-17-2014, 04:27 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
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'
Reply With Quote