Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Legacy Input System anyKeyDown not true when expected in some scenarios

Discussion in 'Input System' started by diesoftgames, May 25, 2023.

  1. diesoftgames


    Nov 27, 2018
    I'm using the legacy input system in Unity 2020.3.3 LTS and I've noticed that there are some cases where `UnityEngine.Input.anyKeyDown` doesn't return true when gamepad buttons are pressed. Specifically this happens if Steam Input is enabled (even if it's disabled for the controller, if it's on at all for the game it happens) and also on Nintendo hardware.