Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
chengnay's avatar
chengnay
Explorer
3 years ago

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