fix: radio wheel input rework, weapon-apply guard, control-lock/close fixes (issue #31 review)
linux / build (push) Canceled after 33s

This commit is contained in:
2026-12-01 19:53:17 +00:00
parent 97f3c73cea
commit 4b683021c7
7 changed files with 45 additions and 15 deletions
+5 -1
View File
@@ -538,7 +538,11 @@ cMusicManager::ServiceGameMode()
#endif
}
#ifdef RADIO_SCROLL_TO_PREV_STATION
else if(!CPad::GetPad(0)->ArePlayerControlsDisabled() && (CPad::GetPad(0)->GetMouseWheelDownJustDown() || CPad::GetPad(0)->GetMouseWheelUpJustDown())) {
else if(!CPad::GetPad(0)->ArePlayerControlsDisabled()
#ifdef IMPROVED_WEAPON_WHEEL
&& !Wheel_IsRadioWheelOpen() // the radio wheel owns the mouse wheel
#endif
&& (CPad::GetPad(0)->GetMouseWheelDownJustDown() || CPad::GetPad(0)->GetMouseWheelUpJustDown())) {
int scrollNext = ControlsManager.GetControllerKeyAssociatedWithAction(VEHICLE_CHANGE_RADIO_STATION, MOUSE);
int scrollPrev = scrollNext == rsMOUSEWHEELUPBUTTON ? rsMOUSEWHEELDOWNBUTTON : scrollNext == rsMOUSEWHEELDOWNBUTTON ? rsMOUSEWHEELUPBUTTON : -1;