Fix binding joystick digital axes in the menu

git-svn-id: https://svn.eduke32.com/eduke32@7957 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2019-08-12 15:23:11 +00:00 committed by Christoph Oelckers
parent 56998c4840
commit 5cc9d1e440

View file

@ -3365,7 +3365,7 @@ static int32_t Menu_EntryOptionModify(MenuEntry_t *entry, int32_t newOption)
{
for (int i = 0; i < ARRAY_SSIZE(MEL_INTERNAL_JOYSTICKAXIS_DIGITAL); i++)
if (entry == MEL_INTERNAL_JOYSTICKAXIS_DIGITAL[i])
CONTROL_MapDigitalAxis(i>>1, newOption, i&1, controldevice_joystick);
CONTROL_MapDigitalAxis(M_JOYSTICKAXES.currentEntry, newOption, i&1, controldevice_joystick);
}
break;
}