feat: make weapon wheel key remappable (issue #31)
linux / build (push) Canceled after 13m5s
linux / build (push) Canceled after 13m5s
This commit is contained in:
@@ -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() )
|
||||
|
||||
Reference in New Issue
Block a user