Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

[BUG] PlayerInput's Auto-Switch option causes gamepads joystick values to not reset.

Discussion in 'Input System' started by toomasio, Nov 6, 2020.

  1. toomasio

    toomasio

    Joined:
    Nov 19, 2013
    Posts:
    201
    When I enable the PlayerInput component's Auto-Switch option, I think this causes the joystick values on gamepads to get stuck above Vector2.zero sometimes. If you are using the cancel events as a remedy to zero out the input, it constantly spams the cancel event as well.

    Just a heads up to anyone getting sticky values...might need to disable "auto-switch" and also set the default scheme to your Gamepad scheme until this is fixed.