Skip to content

Commit

Permalink
fixup! feat(radar): convert hard-coded keys to use bind-manager
Browse files Browse the repository at this point in the history
  • Loading branch information
mwerle committed Nov 13, 2024
1 parent 4f2069f commit d0e8491
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ship/PlayerShipController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,11 @@ REGISTER_INPUT_BINDING(PlayerShipController)
input->AddAxisBinding("BindControlLandingGear", landingGroup, Axis());

auto radarGroup = controlsPage->GetBindingGroup("RadarControl");
input->AddActionBinding("BindRadarZoomReset", radarGroup, Action({ SDLK_UP }));
input->AddActionBinding("BindRadarToggleMode", radarGroup, Action({ SDLK_DOWN }));
// TODO: Make axis
input->AddActionBinding("BindRadarZoomReset", radarGroup, Action({ SDLK_DOWN }));
input->AddActionBinding("BindRadarToggleMode", radarGroup, Action({ SDLK_UP }));
input->AddActionBinding("BindRadarZoomIn", radarGroup, Action({ SDLK_LEFT }));
input->AddActionBinding("BindRadarZoomOut", radarGroup, Action({ SDLK_RIGHT }));
input->AddAxisBinding("BindRadarZoom", radarGroup, Axis());
}

PlayerShipController::PlayerShipController() :
Expand Down

0 comments on commit d0e8491

Please sign in to comment.