Skip to content

How do I handle Keyboard event, but only ones that doesn't produce ascii chararcters ? #2604

Answered by kchibisov
Maix0 asked this question in Q&A
Discussion options

You must be logged in to vote

The WindowEvent::KeyboardInput is followed by the WindowEvent::ReceivedCharacter(char). You can check that it's ascii with https://doc.rust-lang.org/std/primitive.char.html#method.is_ascii.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Maix0
Comment options

@madsmtm
Comment options

@kchibisov
Comment options

@madsmtm
Comment options

Answer selected by kchibisov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants