Search Unity

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

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

  1. diesoftgames

    diesoftgames

    Joined:
    Nov 27, 2018
    Posts:
    122
    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.