Forum Discussion
chengnay
3 years agoExplorer
How to get thumb stick touch value or axis value?
I am trying to get thumb stick touch value or axis value, for example, RThumbstickUp/RThumbstickDown/RThumbstickLeft/RThumbstickRight.
I tried below methods and it failed.
var ctrlState = OVRPlugin.GetControllerState((uint)OVRPlugin.Controller.RTouch);
Print ctrlState.Touches and only able to get OVRInput.RawTouch.RThumbstick value
Vector2 axis1 = OVRInput.Get(OVRInput.Axis2D.PrimaryThumbstick);
Vector2 axis2 = OVRInput.Get(OVRInput.Axis2D.SecondaryThumbstick);
Above code only returns 0,0
Please help, thanks!
No RepliesBe the first to reply
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
- 7 months ago
- 7 months ago
- 4 years ago