From f7fc5c684edb95e132974692ae23f71872aa18c4 Mon Sep 17 00:00:00 2001 From: toaster Date: Fri, 26 Aug 2022 21:26:03 +0100 Subject: [PATCH] Positive sign only --- src/m_menu.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/m_menu.c b/src/m_menu.c index ee854113..5d1e35ee 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -2636,13 +2636,10 @@ boolean M_Responder(event_t *ev) if (Joystick.bGamepadStyle || retaxis > jacceldeadzone) { - if (joywaitaccel < thistime) + if (joywaitaccel < thistime && retaxis >= pjoyaccel) // only on upwards event { ch = KEY_ENTER; - joywaitaccel = thistime; - if (pjoyaccel == 0 // no previous input? - || ((retaxis < 0) == (pjoyaccel > 0))) // same direction as the current one? - joywaitaccel += NEWTICRATE/3; + joywaitaccel = thistime + NEWTICRATE/3; } pjoyaccel = retaxis; }