diff options
| author | briaguya <70942617+briaguya-ai@users.noreply.github.com> | 2025-01-28 18:32:06 -0500 |
|---|---|---|
| committer | Lywx <kiritodev01@gmail.com> | 2025-01-28 20:15:08 -0600 |
| commit | 4137d413be9859b1cda5980446582eaab939b00c (patch) | |
| tree | a8e23bddeffc269baf7aa593e8fcb26824e8de2a /src/port/Engine.cpp | |
| parent | 25d5d1758a1d7260ee44253e3ab87b6921ab4157 (diff) | |
forgot c up and c right
Diffstat (limited to 'src/port/Engine.cpp')
| -rw-r--r-- | src/port/Engine.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/port/Engine.cpp b/src/port/Engine.cpp index 6433ad4f..1b7099a9 100644 --- a/src/port/Engine.cpp +++ b/src/port/Engine.cpp @@ -146,7 +146,9 @@ GameEngine::GameEngine() { // SDLAxisDirectionToButtonMappings std::unordered_map<CONTROLLERBUTTONS_T, std::vector<std::pair<SDL_GameControllerAxis, int32_t>>>{ { BTN_R, { { SDL_CONTROLLER_AXIS_TRIGGERRIGHT, 1 } } }, - { BTN_Z, { { SDL_CONTROLLER_AXIS_TRIGGERLEFT, 1 } } } + { BTN_Z, { { SDL_CONTROLLER_AXIS_TRIGGERLEFT, 1 } } }, + { BTN_CUP, { { SDL_CONTROLLER_AXIS_RIGHTY, -1 } } }, + { BTN_CRIGHT, { { SDL_CONTROLLER_AXIS_RIGHTX, 1 } } } }, // SDLAxisDirectionToAxisDirectionMappings - use built-in LUS defaults std::unordered_map<Ship::StickIndex, std::vector<std::pair<Ship::Direction, std::pair<SDL_GameControllerAxis, int32_t>>>>() |
