| 8 | #[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, IntoPrimitive, TryFromPrimitive, Debug)] |
| 9 | #[repr(u32)] |
| 10 | pub enum KeyCode { |
| 11 | No = UNICODE_BELOW_256, |
| 12 | ErrorRollOver, |
| 13 | PostFail, |
| 14 | ErrorUndefined, |
| 15 | A, // 4 |
| 16 | B, |
| 17 | C, |
| 18 | D, |
| 19 | E, |
| 20 | F, |
| 21 | G, |
| 22 | H, //11 |
| 23 | I, |
| 24 | J, |
| 25 | K, |
| 26 | L, |
| 27 | M, // 0x10 |
| 28 | N, |
| 29 | O, |
| 30 | P, |
| 31 | Q, //20 |
| 32 | R, |
| 33 | S, |
| 34 | T, |
| 35 | U, |
| 36 | V, |
| 37 | W, |
| 38 | X, |
| 39 | Y, |
| 40 | Z, //29 |
| 41 | Kb1, // Keyboard 1 30 |
| 42 | Kb2, |
| 43 | Kb3, // 0x20 |
| 44 | Kb4, |
| 45 | Kb5, |
| 46 | Kb6, |
| 47 | Kb7, |
| 48 | Kb8, |
| 49 | Kb9, |
| 50 | Kb0, //40 |
| 51 | Enter, |
| 52 | Escape, |
| 53 | BSpace, |
| 54 | Tab, |
| 55 | Space, |
| 56 | Minus, //0x2D - 45 |
| 57 | Equal, |
| 58 | LBracket, |
| 59 | RBracket, // 0x30 --48 |
| 60 | BSlash, // \ (and |) |
| 61 | NonUsHash, // Non-US # and ~ (Typically near the Enter key) |
| 62 | SColon, // ; (and :) |
| 63 | Quote, // ' and " |
| 64 | Grave, // Grave accent and tilde |
| 65 | Comma, // , and < |
| 66 | Dot, // . and > |
| 67 | Slash, // / and ? |
nothing calls this directly
no outgoing calls
no test coverage detected