mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 04:41:23 +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 (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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue