Only use positive component of accel axis for menu KEY_ENTER behaviour

This commit is contained in:
toaster 2022-08-26 21:00:39 +01:00
parent 9e194dab2d
commit b10c21c504

View file

@ -2633,7 +2633,7 @@ boolean M_Responder(event_t *ev)
if (cv_moveaxis.value < 0) if (cv_moveaxis.value < 0)
retaxis = -retaxis; 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; ch = KEY_ENTER;
joywaitaccel = thistime; joywaitaccel = thistime;