Search Unity

XRInteractionToolkit - InputHelper's Button definitions wrong/misleading. Bug?

Discussion in 'VR' started by snw, Mar 23, 2020.

  1. snw

    snw

    Joined:
    Mar 13, 2014
    Posts:
    42
    Hi,

    I'm currently developing for Oculus Quest and almost lost my mind because I couldn't get XRController's "select" functionality to work.

    I just figured out that if I use "TriggerPressed" for the "Select Usage", the InputFeatureUsage-check in the InputHelpers class always returns false. If you look at the XRInputMappings (https://docs.unity3d.com/Manual/xr_input.html), there is no "TriggerPressed" definition. I assumed, that "TriggerPressed" would somehow map to CommonUsage.triggerButton, but it doesn't!

    Question:
    Why does InputHelper introduce additional, hard-coded Button/ButtonInfo defintions instead of utilizing the definitions in the CommonUsage class? Isn't this very error prone?


    Cheers.
     
    Last edited: Mar 23, 2020