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

Suggestion: Convert Keyboard Input Events to Characters (UTF8,...) #201

Closed
sbward opened this issue Jan 15, 2015 · 4 comments
Closed

Suggestion: Convert Keyboard Input Events to Characters (UTF8,...) #201

sbward opened this issue Jan 15, 2015 · 4 comments

Comments

@sbward
Copy link
Contributor

sbward commented Jan 15, 2015

I think there should be a way to easily get the actual character associated with a keyboard key press. If I'm not mistaken, this would currently have to be implemented by the user, with something like a character mapping to a subset of VirtualKeyCode variants.

@jdm
Copy link
Contributor

jdm commented Feb 5, 2015

Related: #249

@milibopp
Copy link
Contributor

milibopp commented Feb 6, 2015

I'm confused… isn't this what glutin::Event::ReceivedCharacter(char) is for?

@jdm
Copy link
Contributor

jdm commented Feb 6, 2015

Ah, yes. It doesn't have any association with the state of the key however, so it's really difficult to use for things like DOM key events that should have a displayable character regardless of pressed/released status.

@tomaka
Copy link
Contributor

tomaka commented Nov 3, 2016

Closing for rust-windowing/winit#34

@tomaka tomaka closed this as completed Nov 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants