OVRPlugin.GetInputState not returning data for GamePads
We are currenty using OVRPlugin.GetInputState to query the state of the Touch devices and have started to add support for the XBox One controller. We have noticed that the OVRPlugin.GetInputState method does not seem to work as expected when it has been passed the Gamepad enumeration value.
1.) The InputState structure is always zeroed out and does not represent the current state of the controller. The ConnectedControllers field will always be 0 even though the controller is connected.
2.) Unity will hard crash if the headset happens to be powered down and this code is executed.
Example:
OVRPlugin.InputState state = OVRPlugin.GetInputState((uint)OVRInput.Controller.Gamepad);
Should OVRPlugin.GetInputState return the state of Game Pads? Or is this functionality only supported via the OVRInput class? We currently do not use OVRManager. Therefore, we cannot take advantage of the OVRInput object since it relies on OVRManager.
-Bill
1.) The InputState structure is always zeroed out and does not represent the current state of the controller. The ConnectedControllers field will always be 0 even though the controller is connected.
2.) Unity will hard crash if the headset happens to be powered down and this code is executed.
Example:
OVRPlugin.InputState state = OVRPlugin.GetInputState((uint)OVRInput.Controller.Gamepad);
Should OVRPlugin.GetInputState return the state of Game Pads? Or is this functionality only supported via the OVRInput class? We currently do not use OVRManager. Therefore, we cannot take advantage of the OVRInput object since it relies on OVRManager.
-Bill
