Search Unity

Question Switch Pro Controller's specific bindings are overriden by generic Gamepad bindings

Discussion in 'Input System' started by gabrielmaczuli, Mar 19, 2023.

  1. gabrielmaczuli

    gabrielmaczuli

    Joined:
    Jan 28, 2018
    Posts:
    1
    Hello! I'm setting up specific controller binding in the Control Scheme for my game and I've come across a problem. I'm testing with a HORI Wired Switch Pro Controller and I've bound the <Gamepad>.ButtonSouth as the confirm button on the menu but I'd like to switch it to the <SwitchPro>.A when I'm using that specific controller.The <SwitchPro>.A is also the <Gamepad>.East input which is bound to the menu cancel input. Please see below:
    upload_2023-3-19_22-22-27.png

    When running the game, pressing the A button on the Switch controller is calling the cancel action (which means the Gamepad action is overriding it) and when pressing the B button it also cancels (and ignores the Gamepad.South binding). Does anyone know why this happens? How can I keep the specific bindings I want for the Switch controller without deleting the generic bindings?

    Any help is appreciated,
    Thanks :)