Forum Discussion
BloodyOculus
7 years agoProtege
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?
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).- BloodyOculusProtegeok thanks
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