How do I get the new Input System to wrap the oculus controllers?
I want my game to be playable with a gamepad, or with the touch controllers. I just read the value of the joysticks and buttons, nothing else. I’d like the input system to encapsulate all of this, however the controllers provide input via OvrInput.Get() and not the input system. How should I deal with this?
Create two control schemes, one for gamepad, one for Oculus Touch controller. Bind each action as needed.
Can you provide a little more info on that, thanks? The documentation is just really confusing and messy, i dont understand any of it.
OVRInput is the Oculus SDK provided way of reading controller input, but the Input System should be detecting and reading input from Oculus Touch Controllers out of the box via the XR plug-in that’s installed with the package (I’'m using 1.5, but should be true for 1.0.2+). When you’re selecting a binding for an action in the InputAction GUI window, “Oculus Touch Controller” should be listed under “XR Controller”. As rdjadu mentioned - just bind which control to actions as desired.
Control Schemes (also mentioned above) are not required for you to use Oculus Touch input, but they’re helpful for organizing and enabling input based on the player device.