diff options
Diffstat (limited to 'src/core/settings.h')
| -rw-r--r-- | src/core/settings.h | 69 |
1 files changed, 52 insertions, 17 deletions
diff --git a/src/core/settings.h b/src/core/settings.h index f2c88e5d4..bd9a3d9fe 100644 --- a/src/core/settings.h +++ b/src/core/settings.h | |||
| @@ -16,52 +16,87 @@ 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, |
| 47 | Screenshot, | ||
| 32 | 48 | ||
| 33 | NumButtons, | 49 | NumButtons, |
| 34 | }; | 50 | }; |
| 35 | 51 | ||
| 36 | constexpr int BUTTON_HID_BEGIN = A; | 52 | constexpr int BUTTON_HID_BEGIN = A; |
| 37 | constexpr int BUTTON_IR_BEGIN = ZL; | ||
| 38 | constexpr int BUTTON_NS_BEGIN = Home; | 53 | constexpr int BUTTON_NS_BEGIN = Home; |
| 39 | 54 | ||
| 40 | constexpr int BUTTON_HID_END = BUTTON_IR_BEGIN; | 55 | constexpr int BUTTON_HID_END = BUTTON_NS_BEGIN; |
| 41 | constexpr int BUTTON_IR_END = BUTTON_NS_BEGIN; | ||
| 42 | constexpr int BUTTON_NS_END = NumButtons; | 56 | constexpr int BUTTON_NS_END = NumButtons; |
| 43 | 57 | ||
| 44 | constexpr int NUM_BUTTONS_HID = BUTTON_HID_END - BUTTON_HID_BEGIN; | 58 | constexpr int NUM_BUTTONS_HID = BUTTON_HID_END - BUTTON_HID_BEGIN; |
| 45 | constexpr int NUM_BUTTONS_IR = BUTTON_IR_END - BUTTON_IR_BEGIN; | ||
| 46 | constexpr int NUM_BUTTONS_NS = BUTTON_NS_END - BUTTON_NS_BEGIN; | 59 | constexpr int NUM_BUTTONS_NS = BUTTON_NS_END - BUTTON_NS_BEGIN; |
| 47 | 60 | ||
| 48 | static const std::array<const char*, NumButtons> mapping = {{ | 61 | static const std::array<const char*, NumButtons> mapping = {{ |
| 49 | "button_a", "button_b", "button_x", "button_y", "button_up", "button_down", "button_left", | 62 | "button_a", |
| 50 | "button_right", "button_l", "button_r", "button_start", "button_select", "button_zl", | 63 | "button_b", |
| 51 | "button_zr", "button_home", | 64 | "button_x", |
| 65 | "button_y", | ||
| 66 | "button_lstick", | ||
| 67 | "button_rstick", | ||
| 68 | "button_l", | ||
| 69 | "button_r", | ||
| 70 | "button_zl", | ||
| 71 | "button_zr", | ||
| 72 | "button_plus", | ||
| 73 | "button_minus", | ||
| 74 | "button_dleft", | ||
| 75 | "button_dup", | ||
| 76 | "button_dright", | ||
| 77 | "button_ddown", | ||
| 78 | "button_lstick_left", | ||
| 79 | "button_lstick_up", | ||
| 80 | "button_lstick_right", | ||
| 81 | "button_lstick_down", | ||
| 82 | "button_sl", | ||
| 83 | "button_sr", | ||
| 84 | "button_home", | ||
| 85 | "button_screenshot", | ||
| 52 | }}; | 86 | }}; |
| 53 | } // namespace NativeButton | 87 | } // namespace NativeButton |
| 54 | 88 | ||
| 55 | namespace NativeAnalog { | 89 | namespace NativeAnalog { |
| 56 | enum Values { | 90 | enum Values { |
| 57 | CirclePad, | 91 | LStick, |
| 58 | CStick, | 92 | RStick, |
| 59 | 93 | ||
| 60 | NumAnalogs, | 94 | NumAnalogs, |
| 61 | }; | 95 | }; |
| 62 | 96 | ||
| 63 | static const std::array<const char*, NumAnalogs> mapping = {{ | 97 | static const std::array<const char*, NumAnalogs> mapping = {{ |
| 64 | "circle_pad", "c_stick", | 98 | "lstick", |
| 99 | "rstick", | ||
| 65 | }}; | 100 | }}; |
| 66 | } // namespace NativeAnalog | 101 | } // namespace NativeAnalog |
| 67 | 102 | ||