MCPcopy Create free account
hub / github.com/TyberiusPrime/KeyToKey / is_unicode_keycode

Method is_unicode_keycode

src/handlers/unicodekeyboard.rs:20–27  ·  view source on GitHub ↗
(keycode: u32)

Source from the content-addressed store, hash-verified

18 }
19
20 fn is_unicode_keycode(keycode: u32) -> bool {
21 match keycode {
22 0xF0000..=0xFFFFD => false, //unicode private character range A
23 0x100000..=0x1000FE => false, //these are the usb codes
24 0x1000FF..=0x10FFFD => false, //unicode private character range b (minus those we use for codes < 256)
25 _ => true,
26 }
27 }
28 fn keycode_to_unicode(keycode: u32) -> u32 {
29 if keycode < 0x100_000 {
30 keycode

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected