Search Unity

Resolved PlayerInput only detecting Left XRController, not detecting Right device

Discussion in 'XR Interaction Toolkit and Input' started by KingKRoecks, Jun 18, 2021.

  1. KingKRoecks

    KingKRoecks

    Joined:
    Jul 28, 2013
    Posts:
    155
    I've added an "onActionTriggered" callback to be able to debug.log() all of the inputs that are witnessed.
    upload_2021-6-18_11-18-6.png

    I've created a series of XR controls for both Left and Right controllers explicitly:
    upload_2021-6-18_11-16-40.png

    And yet, despite being able to see both controllers moving around, I can only receive inputs from the Left controllers.

    upload_2021-6-18_11-21-2.png

    In the input debugger, I can see there are 2 "IndexControllerOpenXR" detected, yet only one seems to have paired with the user.

    Does anyone know why the Right controller would not pair?

    Or is there any way to force the pairing?
     
  2. KingKRoecks

    KingKRoecks

    Joined:
    Jul 28, 2013
    Posts:
    155
    This appears to work to force it:

    upload_2021-6-18_12-17-6.png

    Still unsure why it's necessary, but it will at least unblock me
     
  3. the_real_apoxol

    the_real_apoxol

    Unity Technologies

    Joined:
    Dec 18, 2020
    Posts:
    467
    We would need a sample project to look at to investigate why that is needed. You can submit a bug through `Help -> Report a Bug` if you would like us to look into it further.
     
  4. KingKRoecks

    KingKRoecks

    Joined:
    Jul 28, 2013
    Posts:
    155
    I figured it out.

    Ultimately, it was "triggerPressed" vs "triggerButton".

    I have no idea what "triggerButton" is, but it's never detected while triggerPressed is.
     
    the_real_apoxol likes this.