mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
Menus: Disable the gamepad axes and buttons menus if opening them would cause an abort due to having no items
git-svn-id: https://svn.eduke32.com/eduke32@8012 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
0855428a0c
commit
fafc8f1583
1 changed files with 2 additions and 0 deletions
|
@ -2141,6 +2141,8 @@ static void Menu_Pre(MenuID_t cm)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MENU_JOYSTICKSETUP:
|
case MENU_JOYSTICKSETUP:
|
||||||
|
MenuEntry_DisableOnCondition(&ME_JOYSTICK_EDITBUTTONS, !CONTROL_JoyPresent || (joystick.numButtons == 0 && joystick.numHats == 0));
|
||||||
|
MenuEntry_DisableOnCondition(&ME_JOYSTICK_EDITAXES, !CONTROL_JoyPresent || joystick.numAxes == 0);
|
||||||
MenuEntry_DisableOnCondition(&ME_JOYSTICK_DEFAULTS_STANDARD, !joystick.isGameController);
|
MenuEntry_DisableOnCondition(&ME_JOYSTICK_DEFAULTS_STANDARD, !joystick.isGameController);
|
||||||
MenuEntry_DisableOnCondition(&ME_JOYSTICK_DEFAULTS_PRO, !joystick.isGameController);
|
MenuEntry_DisableOnCondition(&ME_JOYSTICK_DEFAULTS_PRO, !joystick.isGameController);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue