WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 07-17-2014, 10:03 AM
mshukun mshukun is offline
Join Date: Jan 2013
Posts: 32
Handling connected devices

I created an application that requires both the Microsoft Xbox controller and Oculus Rift HMD connections. The Vizard throws error messages in Vizard IDE when these devices are not connected. I would like notify device connection errors to the user using vizinput.message(). Unfortunately, I haven't been able to find the way to do it. I appreciate if you have any suggestions/solutions regarding the problem.

IF Both Oculus Rift HMD and Xbox controller are connected
THEN start the application
THEN show message and Exit the application

Thank you,
Reply With Quote
Old 07-17-2014, 04:27 PM
Jeff Jeff is offline
WorldViz Team Member
Join Date: Aug 2008
Posts: 2,465
The 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:

import oculus
hmd = oculus.Rift()
if hmd.getSensor() is None:
	print 'Rift not connected'
Reply With Quote

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 04:18 PM.

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