summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/settings.h67
1 files changed, 50 insertions, 17 deletions
diff --git a/src/core/settings.h b/src/core/settings.h
index f2c88e5d4..be79ff78e 100644
--- a/src/core/settings.h
+++ b/src/core/settings.h
@@ -16,17 +16,32 @@ enum Values {
16 B, 16 B,
17 X, 17 X,
18 Y, 18 Y,
19 Up, 19 LStick,
20 Down, 20 RStick,
21 Left,
22 Right,
23 L, 21 L,
24 R, 22 R,
25 Start,
26 Select,
27
28 ZL, 23 ZL,
29 ZR, 24 ZR,
25 Plus,
26 Minus,
27
28 DLeft,
29 DUp,
30 DRight,
31 DDown,
32
33 LStick_Left,
34 LStick_Up,
35 LStick_Right,
36 LStick_Down,
37
38 RStick_Left,
39 RStick_Up,
40 RStick_Right,
41 RStick_Down,
42
43 SL,
44 SR,
30 45
31 Home, 46 Home,
32 47
@@ -34,34 +49,52 @@ enum Values {
34}; 49};
35 50
36constexpr int BUTTON_HID_BEGIN = A; 51constexpr int BUTTON_HID_BEGIN = A;
37constexpr int BUTTON_IR_BEGIN = ZL;
38constexpr int BUTTON_NS_BEGIN = Home; 52constexpr int BUTTON_NS_BEGIN = Home;
39 53
40constexpr int BUTTON_HID_END = BUTTON_IR_BEGIN; 54constexpr int BUTTON_HID_END = BUTTON_NS_BEGIN;
41constexpr int BUTTON_IR_END = BUTTON_NS_BEGIN;
42constexpr int BUTTON_NS_END = NumButtons; 55constexpr int BUTTON_NS_END = NumButtons;
43 56
44constexpr int NUM_BUTTONS_HID = BUTTON_HID_END - BUTTON_HID_BEGIN; 57constexpr int NUM_BUTTONS_HID = BUTTON_HID_END - BUTTON_HID_BEGIN;
45constexpr int NUM_BUTTONS_IR = BUTTON_IR_END - BUTTON_IR_BEGIN;
46constexpr int NUM_BUTTONS_NS = BUTTON_NS_END - BUTTON_NS_BEGIN; 58constexpr int NUM_BUTTONS_NS = BUTTON_NS_END - BUTTON_NS_BEGIN;
47 59
48static const std::array<const char*, NumButtons> mapping = {{ 60static const std::array<const char*, NumButtons> mapping = {{
49 "button_a", "button_b", "button_x", "button_y", "button_up", "button_down", "button_left", 61 "button_a",
50 "button_right", "button_l", "button_r", "button_start", "button_select", "button_zl", 62 "button_b",
51 "button_zr", "button_home", 63 "button_x",
64 "button_y",
65 "button_lstick",
66 "button_rstick",
67 "button_l",
68 "button_r",
69 "button_zl",
70 "button_zr",
71 "button_plus",
72 "button_minus",
73 "button_dleft",
74 "button_dup",
75 "button_dright",
76 "button_ddown",
77 "button_lstick_left",
78 "button_lstick_up",
79 "button_lstick_right",
80 "button_lstick_down",
81 "button_sl",
82 "button_sr",
83 "button_home",
52}}; 84}};
53} // namespace NativeButton 85} // namespace NativeButton
54 86
55namespace NativeAnalog { 87namespace NativeAnalog {
56enum Values { 88enum Values {
57 CirclePad, 89 LStick,
58 CStick, 90 RStick,
59 91
60 NumAnalogs, 92 NumAnalogs,
61}; 93};
62 94
63static const std::array<const char*, NumAnalogs> mapping = {{ 95static const std::array<const char*, NumAnalogs> mapping = {{
64 "circle_pad", "c_stick", 96 "lstick",
97 "rstick",
65}}; 98}};
66} // namespace NativeAnalog 99} // namespace NativeAnalog
67 100