feat: make weapon wheel key remappable (issue #31)
linux / build (push) Canceled after 13m5s

This commit is contained in:
2026-12-02 16:18:56 +00:00
parent ffbdb3595f
commit a018cf1e77
7 changed files with 49 additions and 2 deletions
+11
View File
@@ -2270,6 +2270,17 @@ bool CPad::CycleWeaponRightJustDown(void)
#endif
}
#ifdef IMPROVED_WEAPON_WHEEL
bool CPad::GetWeaponWheel(void)
{
// Reads the remappable WEAPON_WHEEL binding directly (like the old
// GetTab() trigger did) instead of a pad-state field, so the key can be
// changed in the controls menu without colliding with pad buttons.
return ControlsManager.GetIsKeyboardKeyDown((RsKeyCodes)ControlsManager.GetControllerKeyAssociatedWithAction(WEAPON_WHEEL, KEYBOARD))
|| ControlsManager.GetIsKeyboardKeyDown((RsKeyCodes)ControlsManager.GetControllerKeyAssociatedWithAction(WEAPON_WHEEL, OPTIONAL_EXTRA));
}
#endif
bool CPad::GetTarget(void)
{
if ( ArePlayerControlsDisabled() )