PDA

View Full Version : HTC Vive Controller not working


Seadna
05-23-2016, 11:23 AM
Hi there,

I have successfully loaded the example script with the Vive headset working flawlessly. However i cannot seem to get the controllers to work. I ran the example script but cannot see the controllers. The controllers are on and they work in other applications.

Any help is much appreciated.

Jeff
05-24-2016, 03:22 AM
Are there any controllers returned by the steamvr.getControllerList() command? Does the following print 'connected' for each controller?

import viz
import steamvr

viz.go()

hmd = steamvr.HMD()
if not hmd.getSensor():
sys.exit('SteamVR HMD not detected')

for controller in steamvr.getControllerList():
print 'connected'

Seadna
10-22-2016, 08:59 AM
They work now, but only when they are turned on before running my code. Thanks for help.

Roy
04-20-2021, 04:10 AM
Hi,

I have the same problem.
Although the controller preferences in steamVR is fine, it doesn't work in vizard program.

When I write codes as below,
for controller in steamvr.getControllerList():
print 'vive controller connected'
vizconfig.register(controller)
vizconfig.getConfigWindow().setWindowVisible(True)

for device in steamvr.getControllerList(): #check VR device
print device

it says
steamvr.dle SteamVR Extension
vive controller connected
__builtin__.SteamVRController(1)


vizconfig shows the window as attached image, but any keys don't work. Also, I tried viztask.waitSensorDown(controller, steamvr.BUTTON_TRACKPAD), but it never work.

sado_rabaudi
04-21-2021, 07:40 AM
Hi Roy,

If you go to tools- vizconnect and choose the SteamVR preset, then go to start page- advanced- inputs do you see a green button or red x next to the r_hand_input and l_hand_input?

Also, the controllers are showing as lit up in SteamVR?

Best,
Sado