|
3 | 3 | #include "interface/c_controller.hpp" |
4 | 4 | #include "networking/transport/transport_security.hpp" |
5 | 5 |
|
6 | | -enum e_event_type |
7 | | -{ |
8 | | - _event_type_none = 0, |
9 | | - _event_type_tab_up, |
10 | | - _event_type_tab_left, |
11 | | - _event_type_tab_down, |
12 | | - _event_type_tab_right, |
13 | | - _event_type_alt_stick_up, |
14 | | - _event_type_alt_stick_left, |
15 | | - _event_type_alt_stick_down, |
16 | | - _event_type_alt_stick_right, |
17 | | - _event_type_alt_tab_up, |
18 | | - _event_type_alt_tab_left, |
19 | | - _event_type_alt_tab_down, |
20 | | - _event_type_alt_tab_right, |
21 | | - _event_type_button_press, |
22 | | - |
23 | | - k_event_type_count |
24 | | -}; |
25 | | - |
26 | | -enum e_controller_component |
27 | | -{ |
28 | | - _controller_component_button_a = 0, |
29 | | - _controller_component_button_b, |
30 | | - _controller_component_button_x, |
31 | | - _controller_component_button_y, |
32 | | - |
33 | | - _controller_component_button_left_shoulder, |
34 | | - _controller_component_button_right_shoulder, |
35 | | - |
36 | | - _controller_component_button_left_trigger, |
37 | | - _controller_component_button_right_trigger, |
38 | | - |
39 | | - _controller_component_button_dpad_up, |
40 | | - _controller_component_button_dpad_down, |
41 | | - _controller_component_button_dpad_left, |
42 | | - _controller_component_button_dpad_right, |
43 | | - |
44 | | - _controller_component_button_start, |
45 | | - _controller_component_button_back, |
46 | | - |
47 | | - _controller_component_button_left_thumb, |
48 | | - _controller_component_button_right_thumb, |
49 | | - |
50 | | - _controller_component_any_stick, |
51 | | - |
52 | | - _controller_component_unknown17, |
53 | | - |
54 | | - _controller_component_left_stick_left, |
55 | | - _controller_component_left_stick_right, |
56 | | - _controller_component_left_stick_up, |
57 | | - _controller_component_left_stick_down, |
58 | | - |
59 | | - _controller_component_right_stick_left, |
60 | | - _controller_component_right_stick_right, |
61 | | - _controller_component_right_stick_up, |
62 | | - _controller_component_right_stick_down, |
63 | | - |
64 | | - _controller_component_left_stick_x, |
65 | | - _controller_component_left_stick_y, |
66 | | - |
67 | | - _controller_component_right_stick_x, |
68 | | - _controller_component_right_stick_y, |
69 | | -}; |
70 | | - |
71 | 6 | struct s_event_record |
72 | 7 | { |
73 | 8 | e_event_type type; |
|
0 commit comments