openvr icon indicating copy to clipboard operation
openvr copied to clipboard

SteamVR_ControllerManager Refresh

Open bostelk opened this issue 10 years ago • 1 comments

In Refresh()

The left and right controllers are connected, but both GetTrackedDeviceIndexForControllerRole(ETrackedControllerRole.LeftHand) and GetTrackedDeviceIndexForControllerRole(ETrackedControllerRole.RightHand) are returning OpenVR.k_unTrackedDeviceIndexInvalid.

This leaves only the right controller active. The left controller should also be active as it has a valid and connected device id (4).

How does SteamVR set LeftHand and RightHand?

bostelk avatar Jul 18 '16 12:07 bostelk

This was fixed in SteamVR beta 1468372130 on 7/12. If a game starts before Left and Right controllers have been set, a temporary assignment is made, so GetTrackedDeviceIndexForControllerRole() will return a valid index (as long as controllers are connected). Once the assignment is locked in, OnTrackedDeviceRoleChanged will be called to update the results.

JeffLeinbaugh avatar Jul 19 '16 01:07 JeffLeinbaugh