feat: GTA V-style weapon and radio wheels behind IMPROVED_WEAPON_WHEEL (issue #31)
linux / build (push) Canceled after 21m54s

This commit is contained in:
2026-12-01 19:32:04 +00:00
parent e08d7fc21d
commit 97f3c73cea
5 changed files with 69 additions and 0 deletions
+15
View File
@@ -2183,6 +2183,10 @@ bool CPad::CycleCameraModeDownJustDown(void)
bool CPad::ChangeStationJustDown(void)
{
#ifdef IMPROVED_WEAPON_WHEEL
// The radio wheel replaces the station-change button (issue #31).
return false;
#else
if ( ArePlayerControlsDisabled() )
return false;
@@ -2218,23 +2222,34 @@ bool CPad::ChangeStationJustDown(void)
}
return false;
#endif
}
bool CPad::CycleWeaponLeftJustDown(void)
{
#ifdef IMPROVED_WEAPON_WHEEL
// The weapon wheel replaces D-pad/shoulder weapon cycling (issue #31).
return false;
#else
if ( ArePlayerControlsDisabled() )
return false;
return !!(NewState.LeftShoulder2 && !OldState.LeftShoulder2);
#endif
}
bool CPad::CycleWeaponRightJustDown(void)
{
#ifdef IMPROVED_WEAPON_WHEEL
// The weapon wheel replaces D-pad/shoulder weapon cycling (issue #31).
return false;
#else
if ( ArePlayerControlsDisabled() )
return false;
return !!(NewState.RightShoulder2 && !OldState.RightShoulder2);
#endif
}
bool CPad::GetTarget(void)