mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-13 00:24:17 +00:00
Positive sign only
This commit is contained in:
parent
de97c41532
commit
f7fc5c684e
1 changed files with 2 additions and 5 deletions
|
@ -2636,13 +2636,10 @@ boolean M_Responder(event_t *ev)
|
||||||
|
|
||||||
if (Joystick.bGamepadStyle || retaxis > jacceldeadzone)
|
if (Joystick.bGamepadStyle || retaxis > jacceldeadzone)
|
||||||
{
|
{
|
||||||
if (joywaitaccel < thistime)
|
if (joywaitaccel < thistime && retaxis >= pjoyaccel) // only on upwards event
|
||||||
{
|
{
|
||||||
ch = KEY_ENTER;
|
ch = KEY_ENTER;
|
||||||
joywaitaccel = thistime;
|
joywaitaccel = thistime + NEWTICRATE/3;
|
||||||
if (pjoyaccel == 0 // no previous input?
|
|
||||||
|| ((retaxis < 0) == (pjoyaccel > 0))) // same direction as the current one?
|
|
||||||
joywaitaccel += NEWTICRATE/3;
|
|
||||||
}
|
}
|
||||||
pjoyaccel = retaxis;
|
pjoyaccel = retaxis;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue