Search Unity

Bug Nintendo switch pro controller ZR/ZL buttons can't work when connected to android phone

Discussion in 'Input System' started by HailorHL, Dec 13, 2022.

  1. HailorHL

    HailorHL

    Joined:
    May 28, 2021
    Posts:
    4
    Hey !

    I’m using the InputSystem in an FPS game, now I faced an issue :
    When connecting a switch pro controller to an android phone, no matter using USB cable or Bluetooth,
    It’s recognized as “AndroidGamepadWithDpadButtons” ,

    In the Input Debugger, ZL /ZR buttons are displayed as “Left/Right Triggers” . When I press ZL /ZR , there is no any response, also the value in the Controls/Value is 0 .
    1.png

    ------------Env:

    Unity 2020.3.38f1 (I also tried Unity 2022.2.0f1,but it’s the same)
    InputSystem 1.4.4
    Android 11

    ------------What I've tried:
    1- I tested it in a new empty project only with InputSystem 1.4.4 and the Visualizers sample,
    After building the GamepadVisualizer scene to APK and testing on android phone, the ZR/ZL buttons do not work either.

    2- I used inputaction asset with binding of “Right Trigger[Gamepad]” , and added other kinds of bindings like “Right Trigger[xxx]” and “ZR xxx” / ”R2 xxx”, however ,they can’t work either.


    ------------ For comparison:
    The switch pro controller works fine in the Unity Editor when connected to PC via a USB cable.
    2.png

    Furthermore ,The PS4 gamepad works fine when connected to an android phone via bluetooth.


    Is there any other method to make it work , or does Unity not fully support the Switch Pro controller on Android?

    Any help/suggestions on the issue would be appreciated! Thank you!


    Regards,
     

    Attached Files:

    Last edited: Jan 5, 2023
  2. HailorHL

    HailorHL

    Joined:
    May 28, 2021
    Posts:
    4
    Update:
    I build an IOS package of the same version,
    and the Switch Pro controller works fine on the IOS build
    via Bluetooth connection.
    It seems like Unity does not support the Switch Pro controller on Android?

    Could anyone give me some clue?
    Thank you!
     
  3. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,073
  4. HailorHL

    HailorHL

    Joined:
    May 28, 2021
    Posts:
    4
  5. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,073
    I can't tell you anything concrete. It is not a high priority for us and also not up to just Unity since there are also licensing/legal issues involved.