diff options
| author | Sonic Dreamcaster <alejandro.asenjo88@gmail.com> | 2025-04-06 01:53:11 -0300 |
|---|---|---|
| committer | Sonic Dreamcaster <alejandro.asenjo88@gmail.com> | 2025-04-06 01:53:11 -0300 |
| commit | daa711f29001a67bd3925fa54bb1a87337d4e23e (patch) | |
| tree | c6145269e0e5f5026be11105e03fde25fb3ad4c6 | |
| parent | 91d847799593bc9c0e279fbf4a079ce08c8b2e11 (diff) | |
Left and Right triggers to accelerate/brake
| -rw-r--r-- | src/port/Engine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/port/Engine.cpp b/src/port/Engine.cpp index f8ccfd63..4a370d29 100644 --- a/src/port/Engine.cpp +++ b/src/port/Engine.cpp @@ -151,8 +151,8 @@ GameEngine::GameEngine() { std::unordered_map<Ship::StickIndex, std::vector<std::pair<Ship::Direction, SDL_GameControllerButton>>>(), // 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_CLEFT, { { SDL_CONTROLLER_AXIS_TRIGGERRIGHT, 1 } } }, + { BTN_CDOWN, { { SDL_CONTROLLER_AXIS_TRIGGERLEFT, 1 } } }, { BTN_CUP, { { SDL_CONTROLLER_AXIS_RIGHTY, -1 } } }, { BTN_CRIGHT, { { SDL_CONTROLLER_AXIS_RIGHTX, 1 } } } }, |
