Forum Discussion
nocatix
9 years agoHonored Guest
GearVR Controller (2017) debugging in Unity
Good day, I recently acquired the new GearVR 2017 model with the new controller. I am currently adding support for the controller in our app and was wondering if there is any way I can get the new c...
Anonymous
9 years agoyup! From: https://developer.oculus.com/documentation/game-engines/latest/concepts/unity-ovrinput
Gear VR Controller
Gear VR Controller provides orientation data through GetLocalControllerRotation(), which returns a quaternion.
Gear VR positions the controller relative to the user by using a body model to estimate the controller’s position. Whether the controller is visualized on the left or right side of the body is determined by left-handedness versus right-handedness, which is specified by users during controller pairing.
To query handedness of a paired controller, use IsControllerConnected() or GetActiveController() to query for RTrackedRemote or LTrackedRemote.
For example:
// returns true if right-handed controller connected
OVRInput.IsControllerConnected(OVRInput.Controller.RTrackedRemote);
Use OVRInput.Get() to query controller touchpad input. You may query the input position with Axis2D:
OVRInput.Get(OVRInput.Axis2D.PrimaryTouchpad, OVRInput.Controller.RTrackedRemote);
A touchpad touch occurs when the user’s finger makes contact with the touchpad without actively clicking it. Touches may be queried with OVRInput.Get(OVRInput.Touch.PrimaryTouchpad). Touchpad clicks are alias to virtual button One clicks, and may be queried with OVRInput.Get(OVRInput.Button.PrimaryTouchpad).
To recenter a Gear VR Controller, use OVRInput.RecenterController().
The volume and home buttons are reserved.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 6 months ago
- 2 years ago