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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug Input system sends keyboard events continuously after fullscreen mode change

Discussion in 'Input System' started by Pyciko, Dec 11, 2022.

  1. Pyciko

    Pyciko

    Joined:
    Nov 19, 2022
    Posts:
    2
    Hello.
    I was making a fullscreen switch in settings for my game, and I noticed a strange bug: if I switch the fullscreen mode using an arrow key press (basically horizontal navigation move), this input continues to be produced after the fullsreen mode switch until I fire another keyboard event again. It results in constant switches between fullscreen and windowed mode cuz it starts turning the switch around and around.

    I should mention that I'm doing all of that on MacOS, maybe this problem doesn't appear in Windows, but still. Everything's fine on gamepad.
     
    Last edited: Dec 11, 2022
  2. Pyciko

    Pyciko

    Joined:
    Nov 19, 2022
    Posts:
    2
    Upd: ended up just resetting the keyboard device after fullscreen mode switch.