mirror of
https://github.com/HarbourMasters/Starship
synced 2026-05-23 15:02:24 -04:00
Left and Right triggers to accelerate/brake
This commit is contained in:
+2
-2
@@ -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 } } }
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user