From b10c21c504bcb3eacf2482785c72d383facfb35f Mon Sep 17 00:00:00 2001 From: toaster Date: Fri, 26 Aug 2022 21:00:39 +0100 Subject: [PATCH] Only use positive component of accel axis for menu KEY_ENTER behaviour --- src/m_menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/m_menu.c b/src/m_menu.c index 3adbd172..1dbe458e 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -2633,7 +2633,7 @@ boolean M_Responder(event_t *ev) if (cv_moveaxis.value < 0) retaxis = -retaxis; - if (joywaitaccel < thistime && (abs(retaxis) >= abs(pjoyaccel))) // only on upwards event + if (joywaitaccel < thistime && retaxis >= pjoyaccel) // only on upwards event { ch = KEY_ENTER; joywaitaccel = thistime;