(keycode: u32)
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected