From 5cc9d1e440f572e63736df1d99354e1fd3dd9f00 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Mon, 12 Aug 2019 15:23:11 +0000 Subject: [PATCH] Fix binding joystick digital axes in the menu git-svn-id: https://svn.eduke32.com/eduke32@7957 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/menus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/duke3d/src/menus.cpp b/source/duke3d/src/menus.cpp index c6d3a35c5..44ba23323 100644 --- a/source/duke3d/src/menus.cpp +++ b/source/duke3d/src/menus.cpp @@ -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; }