WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Oculus Touch Controllers as Input? (https://forum.worldviz.com/showthread.php?t=6233)

Corn 03-04-2019 07:50 AM

Oculus Touch Controllers as Input?
 
Hi all,
I have a new problem with the buttons, triggers and sticks of the Oculus Touch Controllers -- since the last updates of the Oculus and Vizard apps, Vizard does apparently not get these informations anymore (while the tracking of the controllers still works fine).
This holds both for trying to use the Touch Controllers as "Inputs" in Vizconnect (the GUI will indicate that they are connected but not active by a dark green circle), and for simple Vizard scripts such as the one in the end of this thread - no matter which position you hold the joystick in.

Formerly working scripts do not work anymore in the moment. With other Oculus apps, the controllers work fine and they are shown as fully charged, so this is not the problem apparently. I would appreciate any ideas on this! Thank you!

import viz
import vizact
import oculus

hmd = oculus.Rift()
touchRight = hmd.getRightTouchController()

def printStickPosition():
print(str(touchRight.getStick()))

vizact.onupdate(0, printStickPosition)

viz.go()

Jeff 03-10-2019 10:57 PM

If the Oculus headset is not worn, the controllers may not send data.


All times are GMT -7. The time now is 06:07 AM.

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