-
I want to handle keyboard event in some way for keys that produces ascii characters and another way for keys that don't. |
Beta Was this translation helpful? Give feedback.
Answered by
kchibisov
Dec 26, 2022
Replies: 1 comment 4 replies
-
The |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
kchibisov
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
WindowEvent::KeyboardInput
is followed by theWindowEvent::ReceivedCharacter(char)
. You can check that it's ascii with https://doc.rust-lang.org/std/primitive.char.html#method.is_ascii.