Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyboardInput events not being triggered by MacOS native overlays #13356

Open
matthunz opened this issue May 13, 2024 · 0 comments · May be fixed by #13357
Open

KeyboardInput events not being triggered by MacOS native overlays #13356

matthunz opened this issue May 13, 2024 · 0 comments · May be fixed by #13357
Labels
A-Input Player input via keyboard, mouse, gamepad, and more A-Windowing Platform-agnostic interface layer to run your app in C-Bug An unexpected or incorrect behavior O-MacOS Specific to the MacOS (Apple) desktop operating system

Comments

@matthunz
Copy link

matthunz commented May 13, 2024

Bevy version

v13.2

Relevant system information

This happens on MacOS Sonoma 14.3 and I've been able to confirm it on other people's machines.

What you did

Running cargo run --example keyboard_input_events on Mac shows this issue in action.

What went wrong

Triggering a MacOS native UI overlay, such as with CMD+Shift+4 doesn't release the keys pressed.

bevy.mov

In the winit repo window example, I see the modifier state is being changed when I exit the overlay.

winit.mov

Using the KeyboardInput system in Bevy, however, I don't see any events being fired for those changes, so in our app the modifier keys remain pressed. I think this may just be Bevy not propagating the winit events 🤔 though not sure why just MacOS CMD seems to be affected.

@matthunz matthunz added C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled labels May 13, 2024
@alice-i-cecile alice-i-cecile added A-Input Player input via keyboard, mouse, gamepad, and more A-Windowing Platform-agnostic interface layer to run your app in O-MacOS Specific to the MacOS (Apple) desktop operating system and removed S-Needs-Triage This issue needs to be labelled labels May 13, 2024
@matthunz matthunz linked a pull request May 13, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Input Player input via keyboard, mouse, gamepad, and more A-Windowing Platform-agnostic interface layer to run your app in C-Bug An unexpected or incorrect behavior O-MacOS Specific to the MacOS (Apple) desktop operating system
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants