MCPcopy Create free account
hub / github.com/Univa/rumcake / KeyCode

Enum KeyCode

keyberon/src/key_code.rs:10–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, FromPrimitive)]
9#[repr(u8)]
10pub enum KeyCode {
11 /// The "no" key, a placeholder to express nothing.
12 No = 0x00,
13 /// Error if too much keys are pressed at the same time.
14 ErrorRollOver,
15 /// The POST fail error.
16 PostFail,
17 /// An undefined error occured.
18 ErrorUndefined,
19 /// `a` and `A`.
20 A,
21 B,
22 C,
23 D,
24 E,
25 F,
26 G,
27 H,
28 I,
29 J,
30 K,
31 L,
32 M, // 0x10
33 N,
34 O,
35 P,
36 Q,
37 R,
38 S,
39 T,
40 U,
41 V,
42 W,
43 X,
44 Y,
45 Z,
46 /// `1` and `!`.
47 Kb1,
48 /// `2` and `@`.
49 Kb2,
50 /// `3` and `#`.
51 Kb3, // 0x20
52 /// `4` and `$`.
53 Kb4,
54 /// `5` and `%`.
55 Kb5,
56 /// `6` and `^`.
57 Kb6,
58 /// `7` and `&`.
59 Kb7,
60 /// `8` and `*`.
61 Kb8,
62 /// `9` and `(`.
63 Kb9,
64 /// `0` and `)`.
65 Kb0,
66 Enter,
67 Escape,

Callers 3

kFunction · 0.85
test_layout_equalityFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected