Oculus Touch controller registered as mouse input by Unity — Oculus
Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

Oculus Touch controller registered as mouse input by Unity

Nesse_MNesse_M Posts: 4
Hi everyone,

I've been working on a project in Unity where one person uses the Oculus HMD + Touch controllers to interact with the virtual environment, while another person monitors the first via PC (so on a monitor). The latter uses a (self-made) interface to enable / disable certain components for the person in VR; this interface is made with Unity's own UI elements (so: Buttons, Inputfields, Sliders, etc.).

For some reason, one button of the Oculus Touch controllers - the B button on the right controller - simultaneously functions as mouse input. To give a better description: when the mouse on the PC is hovering over a UI component (e.g. an Inputfield) and the user in VR presses the B-button on the Right Touch controller, the UI component will be activated as if clicked on by the mouse.

My question: has anyone encountered this before? How can I disable this?

To give some further information on my predicament:
  • I am using Unity 2017.2.0f3
  • I am using the OpenVR / SteamVR for Unity plug-in as the project needs to be compatible with both HTC Vive and Oculus Rift. Oculus is supported by this plug-in - the plug-in automatically recognizes the Oculus Rift and -Touch controllers when those are connected to the computer when the application is running
  • Input from the Oculus Touch controller is read by the aforementioned OpenVR plug-in - in particular, scripts such as "Steam VR_Trakced Controller" are used to read whatever input it receives and interprets it as a HTC Vive controller. This works perfectly fine despite the fact that Oculus Touch controllers are interpreted as HTC Vive controllers - for example, if the Thumbstick is touched, OpenVR will interpret it as that the Pad of the HTC Vive controller is touched. If it is clicked, it will register it as a Pad press.

Any help would be very welcome! Thanks in advance!
Sign In or Register to comment.