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

Add example demonstrating how to correctly decode a stream of characters from winit #11408

Open
alice-i-cecile opened this issue Jan 18, 2024 · 1 comment
Labels
A-Input Player input via keyboard, mouse, gamepad, and more A-Text Rendering and layout for characters C-Examples An addition or correction to our examples

Comments

@alice-i-cecile
Copy link
Member

          > I am still sort of baffled by the myriad of ways of getting a character from a winit key event, so I hope I'm doing this correctly.

I would love to see an example for this, but it probably shouldn't be this PR.

Originally posted by @alice-i-cecile in #11400 (comment)

@alice-i-cecile
Copy link
Member Author

using ReceivedCharacter for whitespace doesn't work consistently cross-platform (winit bug)
combining ReceivedCharacter and KeyboardInput is buggy because there's no way to know which event came first
Which makes ReceivedCharacter useless, practically. Personally, I'm not sure why it even needs to exist. Definitely a discussion for another GitHub issue / PR though.

From @rparrett down the thread.

@alice-i-cecile alice-i-cecile added C-Examples An addition or correction to our examples A-Input Player input via keyboard, mouse, gamepad, and more A-Text Rendering and layout for characters labels Jan 18, 2024
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-Text Rendering and layout for characters C-Examples An addition or correction to our examples
Projects
None yet
Development

No branches or pull requests

1 participant