Positive sign only

This commit is contained in:
toaster 2022-08-26 21:26:03 +01:00
parent de97c41532
commit f7fc5c684e

View file

@ -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;
}