WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
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
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PPT cameras not connected sisun1030 Precision Position Tracker (PPT) 0 03-05-2010 08:02 AM
Bluetooth Devices for Wiimote envisC Vizard 3 10-27-2009 11:09 AM
Multiple Sound Devices GiudiceLab Vizard 2 06-06-2009 10:29 AM
two haptic devices SSophia Vizard 3 07-07-2008 02:42 PM
game devices jkelly Vizard 10 03-27-2007 02:16 AM


All times are GMT -7. The time now is 05:53 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC