diff options
author | 2023-01-17 01:32:14 +1100 | |
---|---|---|
committer | 2023-01-17 01:32:14 +1100 | |
commit | 3632f1f3aceaccd6901e93836874272a8cf6950b (patch) | |
tree | e038d908891c9329afb9f236d986bacb86f4825d /src/osd/modules/input/input_sdl.cpp | |
parent | cd697037eef5b38771f5b3eda17379ed1f786d14 (diff) |
osd: Added support for guitar and drum kit controllers via XInput.
Diffstat (limited to 'src/osd/modules/input/input_sdl.cpp')
-rw-r--r-- | src/osd/modules/input/input_sdl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/osd/modules/input/input_sdl.cpp b/src/osd/modules/input/input_sdl.cpp index 0f7ece4bdf1..9a93177d521 100644 --- a/src/osd/modules/input/input_sdl.cpp +++ b/src/osd/modules/input/input_sdl.cpp @@ -1259,7 +1259,7 @@ public: #endif // add axes - std::tuple<SDL_GameControllerAxis, input_item_id, bool> axes[]{ + std::tuple<SDL_GameControllerAxis, input_item_id, bool> const axes[]{ { SDL_CONTROLLER_AXIS_LEFTX, ITEM_ID_XAXIS, false }, { SDL_CONTROLLER_AXIS_LEFTY, ITEM_ID_YAXIS, false }, { SDL_CONTROLLER_AXIS_RIGHTX, ITEM_ID_ZAXIS, false }, @@ -1299,7 +1299,7 @@ public: } // add automatically numbered buttons - std::pair<SDL_GameControllerButton, SDL_GameControllerAxis> numberedbuttons[]{ + std::pair<SDL_GameControllerButton, SDL_GameControllerAxis> const numberedbuttons[]{ { SDL_CONTROLLER_BUTTON_A, SDL_CONTROLLER_AXIS_INVALID }, { SDL_CONTROLLER_BUTTON_B, SDL_CONTROLLER_AXIS_INVALID }, { SDL_CONTROLLER_BUTTON_X, SDL_CONTROLLER_AXIS_INVALID }, @@ -1386,7 +1386,7 @@ public: } // add buttons with fixed item IDs - std::pair<SDL_GameControllerButton, input_item_id> fixedbuttons[]{ + std::pair<SDL_GameControllerButton, input_item_id> const fixedbuttons[]{ { SDL_CONTROLLER_BUTTON_BACK, ITEM_ID_SELECT }, { SDL_CONTROLLER_BUTTON_START, ITEM_ID_START }, { SDL_CONTROLLER_BUTTON_DPAD_UP, ITEM_ID_HAT1UP }, |