Search Unity

Bug Nintendo Switch Pro Controller trigger random values

Discussion in 'Input System' started by Jnicocom, Jun 5, 2021.

  1. Jnicocom

    Jnicocom

    Joined:
    Jul 15, 2018
    Posts:
    5
    Problems
    1. Nintendo Switch Pro Controller continuously trigger 0 and 1 in the following buttons:
      • buttonEast
      • buttonNorth
      • buttonSouth
      • buttonWest
      • leftShoulders
      • leftStick
      • rightStick
      • rightTrigger
    2. The dpad works as east, north, south and west buttons, and vice versa.
    3. Does not matter if connected via USB or Bluetooth.
    Setup
    • Nintendo Switch Pro Controller (STANDARD GAMEPAD Vendor: 057e Product: 2009).
    • macOS 11.4
    • Test with Unity 2020.3.11f1 (main), Unity 2021.1.10f1 and Unity 2019.4.28f1.
    • Input System 1.0.2 and packages used:
    Some proofs

    The following images were recorded in a new project using Unity 2020.3.11f1 and the 2D template.



    My gamepad works perfect (tested with https://gamepad-tester.com/).



    I tried "all the solutions" shown in similar posts with this problem, but I need you help.
    Thanks.
     
  2. Jnicocom

    Jnicocom

    Joined:
    Jul 15, 2018
    Posts:
    5
  3. unity_uH-ffL2JjQ2zVQ

    unity_uH-ffL2JjQ2zVQ

    Joined:
    Jun 2, 2020
    Posts:
    3
    +1 happening here too on mac os 11.4
     
  4. Jnicocom

    Jnicocom

    Joined:
    Jul 15, 2018
    Posts:
    5
    Update: I just tested on the latest version of Unity 2020 (2020.3.12f1) and noticed the following changes:

    • The problem continues over Bluetooth.
    • The problem stopped via USB, but now, no buttons are recognized.
     
  5. zh99998

    zh99998

    Joined:
    Mar 2, 2020
    Posts:
    18
    I have same problem in Unity 2021.1 and InputSystem 1.1.0-pre5
     
  6. unity_uH-ffL2JjQ2zVQ

    unity_uH-ffL2JjQ2zVQ

    Joined:
    Jun 2, 2020
    Posts:
    3
  7. McPeppergames

    McPeppergames

    Joined:
    Feb 15, 2019
    Posts:
    103
    Here it is the same. Switch pro controller totally out of control over Bluetooth. Using this with a character controller and the character goes wild without any buttons touched.
    One thing I have noticed. When trying to config the pro controller Player Controls the left stick is not recognized at all!
    When it is added manually during playing the left stick "fires" when the "ZL" button (front left bottom) is pressed!

    Any help welcome!
     
  8. unity_koQqAN8qoMJeaA

    unity_koQqAN8qoMJeaA

    Joined:
    Feb 28, 2020
    Posts:
    2
  9. masakimasa

    masakimasa

    Joined:
    Oct 19, 2020
    Posts:
    4
    I'm having this issue on macOS, Unity 2021.2.7f1, InputSystem 1.2.0.
     
  10. dmytro_at_unity

    dmytro_at_unity

    Unity Technologies

    Joined:
    Feb 12, 2021
    Posts:
    212
    The fixes landed, they will be released in 1.4.0
     
  11. LeftyTwoGuns

    LeftyTwoGuns

    Joined:
    Jan 3, 2013
    Posts:
    260
    When and how do you get this version of the input system?
     
  12. dmytro_at_unity

    dmytro_at_unity

    Unity Technologies

    Joined:
    Feb 12, 2021
    Posts:
    212
    k72dragon, coatline and LeftyTwoGuns like this.
  13. jonahmcintosh

    jonahmcintosh

    Joined:
    Feb 24, 2023
    Posts:
    1
    I have come from the future to tell you that this appears to be a problem with windows and currently can't be fixed by 3rd party apps.

    Please see: https://steamcommunity.com/groups/SteamClientBeta/discussions/0/1696046342859785069/

    Subscribenstein's post (that's me), details the issue.

    Apps such as BetterJoyforCemu and DS4windows are dead ends in my experience. You are basically hosed until microsoft decides to fix this issue on their end and that's likely to never happen given Microsoft's track record about hardware made by other devs.

    If you don't want to use Steam as a hacky way of getting around the controller input issue, you may have to go deeper and code your own plugin or driver for Cemu or DS4 to bypass any problems you experience with those apps. (Cemu kept connecting and disconnecting endlessly and DS4 did not filter the win10 input. Attempting to use a dedicated filter driver for DS4 led to the virtual controller shutting down as well as it couldn't read the controller... or at least that's my guess.)

    If you do not experience those issues with those apps, rad, I wish I was in your shoes.

    At any rate, I wish you all the best in your struggles,

    SubscribensteinsMonster.