Forum Discussion

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

how do you detect the trigger pull amount for touch controllers?

i know theres this 
but if i want to turn the amount of trigger pull into a variable how do i do that? whats the float for the trigger called?
// returns a float of the Hand Trigger’s current state on the Left Oculus Touch controller.
OVRInput.Get(OVRInput.Axis1D.PrimaryHandTrigger, OVRInput.Controller.LTouch);

2 Replies

Replies have been turned off for this discussion
  • float trigger = OVRInput.Get(OVRInput.Axis1D.PrimaryHandTrigger, OVRInput.Controller.LTouch);
    The value in the variable trigger should now be between 0 (no trigger pull) and 1 (full pull).