Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

XR Select Action not being triggered when using Value/Axis and Press Interaction

Discussion in 'Input System' started by Rigaro, Feb 22, 2021.

  1. Rigaro


    Dec 4, 2017
    I'm trying to get a custom hardware device to work as a "grip" button in an XR application. I have tested the InputDevice and it registers in the input system correctly and can debug its input.

    I'm looking to use the AxisControl in this custom InputDevice to trigger the "Select" action of the default input mappings in the XR Interaction Toolkit by using a Value/Axis action with a Press Interaction. This with the purpose of using this custom device to trigger Direct Interactions.

    I have tried substituing the Default mappings:

    And also updating the mapping directly in the XR Controlle object (done these separately):

    However, the Select Action does not trigger no matter what I do. The OnHoverEntered event triggers when a GrabInteractable object enteres the DirectInteractor, but not the OnSelectEntered when the input from my custom device (gripAction) passes the threshold.

    As I was testing this hardcoding values in the "gripAction" it sometimes worked when the default Press Interaction was selected, but it does not work anymore...

    Any suggestions?