cancel
Showing results for 
Search instead for 
Did you mean: 

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

BloodyOculus
Protege
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 2

kojack
MVP
MVP
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).

BloodyOculus
Protege
ok thanks