You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The compiler complains (rightfully so I guess) that the the match in linux/inputs.rs:130, in function: pub fn scan_code_to_key(scan_code: u32) -> Option<KeybdKey>
has unreachable patterns.
This is because 0x47, 0x48, 0x4b, 0x4d and 0x50 are used more than once and match has no way to distinguish between them.
These are numpad keys with double functions, depending on the num-lock state? I am not sure how to fix this.
The text was updated successfully, but these errors were encountered:
I guess these unreachable values should be removed for now to make the warnings go away. But I am also not sure what would need to be done to distinguish between them.. Will need to do some research.
Hi!
Cool crate you've written. Thanks!
The compiler complains (rightfully so I guess) that the the
match
in linux/inputs.rs:130, in function:pub fn scan_code_to_key(scan_code: u32) -> Option<KeybdKey>
has unreachable patterns.
This is because 0x47, 0x48, 0x4b, 0x4d and 0x50 are used more than once and match has no way to distinguish between them.
These are numpad keys with double functions, depending on the num-lock state? I am not sure how to fix this.
The text was updated successfully, but these errors were encountered: