Skip to main content
Up and Coming
February 26, 2019

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);
    This topic has been closed for replies.

    2 replies

    kojack
    Honored Contributor
    February 27, 2019
    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).

    Author: Oculus Monitor , Auto Oculus Touch , Forum Dark Mode , Phantom Touch Remover , X-Plane Fixer Hardware: Threadripper 1950x, MSI Gaming Trio 2080TI, Asrock X399 Taich Headsets: Wrap 1200VR, DK1, DK2, CV1, Rift-S, GearVR, Go, Quest, Quest 2, Reverb G2, Quest 3
    Up and Coming
    March 1, 2019
    ok thanks