From d0e849130043b3ccf6a84d15cc0c026a8e5e542c Mon Sep 17 00:00:00 2001 From: Michael Werle Date: Thu, 14 Nov 2024 07:11:38 +0900 Subject: [PATCH] fixup! feat(radar): convert hard-coded keys to use bind-manager --- src/ship/PlayerShipController.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ship/PlayerShipController.cpp b/src/ship/PlayerShipController.cpp index a06fdd34e2..ca5d684a02 100644 --- a/src/ship/PlayerShipController.cpp +++ b/src/ship/PlayerShipController.cpp @@ -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() :