fix: radio wheel input rework, weapon-apply guard, control-lock/close fixes (issue #31 review)
linux / build (push) Canceled after 33s
linux / build (push) Canceled after 33s
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user