diff options
Diffstat (limited to 'src/joystick.cpp')
-rw-r--r-- | src/joystick.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/joystick.cpp b/src/joystick.cpp index 09d5c6226..cb3fa7fe1 100644 --- a/src/joystick.cpp +++ b/src/joystick.cpp @@ -196,6 +196,8 @@ void Joystick::logic() { const bool state = (SDL_JoystickGetButton(mJoystick, i) == 1); mActiveButtons[i] = state; + if (!state) + resetRepeat(i); #ifdef DEBUG_JOYSTICK if (mActiveButtons[i]) logger->log("button: %d", i); |