-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Unexpected Logical Key Value #11689
Comments
Hmm. I'm not sure if this is incorrect behavior. The logical key value seems well-suited to things like text input. Instead, we might want a |
In many game engines, logical letter keys are simply named enum variants or automatically normalized characters. I believe Bevy game developers who aren't using LWIM also have to address both cases when dealing with widely used letter keys. |
Bevy follows the web standards for key codes and logical keys. Key codes identify the physical key location and are invariant of keyboard layout & modifiers, logical keys represent the meaning of the key. So Bevy behaves as expected (though the distinction between the two could probably be documented better). When I press the |
Bevy version
The main Bevy (currently, commit #08654ad), but the bug actually comes from Bevy PR #10702: Update winit to 0.29
[Optional] Relevant system information
This might be able to reproduce on any machine in the version.
What you did
I am working on the updates of
leafwing_input_manager
to Bevy 0.13, but as the title says, the logicalKey
value seems to be incorrect.Simple Case for Reproduction
What went wrong
The situation is:
KeyboardInput(logical_key: "w")
, an expected lowercase w letter.KeyboardInput(logical_key: "W")
, "AN UPPERCASE W LETTER"!The text was updated successfully, but these errors were encountered: