buttery_engine/key_event.rs
1pub struct KeyEvent {
2 pub key: Key,
3 pub pressed: bool,
4}
5
6pub enum Key {
7 None,
8 A,
9 B,
10 C,
11 D,
12 E,
13 F,
14 G,
15 H,
16 I,
17 J,
18 K,
19 L,
20 M,
21 N,
22 O,
23 P,
24 Q,
25 R,
26 S,
27 T,
28 U,
29 V,
30 W,
31 X,
32 Y,
33 Z,
34 ArrowUp,
35 ArrowDown,
36 ArrowLeft,
37 ArrowRight,
38 Key0,
39 Key1,
40 Key2,
41 Key3,
42 Key4,
43 Key5,
44 Key6,
45 Key7,
46 Key8,
47 Key9,
48 LeftCtrl,
49 RightCtrl,
50 Enter,
51 LeftShift,
52 RightShift,
53 Escape,
54}