Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Input bug when tabbing out while game is initializing #298

Open
TimJentzsch opened this issue Feb 9, 2023 · 2 comments
Open

Input bug when tabbing out while game is initializing #298

TimJentzsch opened this issue Feb 9, 2023 · 2 comments
Labels
bug Something isn't working input Mice and keyboards and gamepads

Comments

@TimJentzsch
Copy link
Collaborator

To reproduce

  1. Use cargo run to launch the game.
  2. While the window is initializing, quickly tab to another window (on Linux the launch takes some time which makes it easy to reproduce).
  3. Once the game has finished loading, tab back into the game.
  4. Move around the mouse. It is stuck in line selection mode, when you click to confirm the selection, the next selection starts immediately.
@TimJentzsch TimJentzsch added the bug Something isn't working label Feb 9, 2023
@alice-i-cecile alice-i-cecile added the input Mice and keyboards and gamepads label Feb 9, 2023
@alice-i-cecile
Copy link
Contributor

This is a bug in bevy_input itself: we should probably be releasing all inputs when focus is lost.

@alice-i-cecile alice-i-cecile added the blocked Cannot be advanced until something else changes label Feb 10, 2023
@alice-i-cecile alice-i-cecile removed the blocked Cannot be advanced until something else changes label May 4, 2023
@alice-i-cecile
Copy link
Contributor

We can hack around it easily enough TBH. Still would be nice to fix upstream!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working input Mice and keyboards and gamepads
Projects
None yet
Development

No branches or pull requests

2 participants