-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
I'm attempting to make a program with the openVR plugin for steamVR in Unity, and the program I want to make in the end requires that hand position/controller inputs are still monitored while the steamVR dashboard is visible, and sadly steamVR prefabs don't work, as whenever I open the steamVR dashboard the hands and headset stop tracking, so I've had to go deeper and use OpenVR functions myself to get this data, and the tracking does work, but I'm having trouble getting the controller state, specifically the finger flexes of the valve index/knuckles controllers.
OpenVR.System.GetControllerState(deviceIndex, ref state, (uint)System.Runtime.InteropServices.Marshal.SizeOf(state));
is my main code line for it, and when attempting to get the state.rAxis0.x or .y and the other axises, it only returns zeros, and I know that I am using the correct device index because I am getting the correct tracking data with the same index value.
Any advice? Or any tips if I'm barking up the wrong tree on how to track hands/controllers/fingers even while dashboard is open?
I would very much appreciate any help or ideas with a fresh set of eyes.