summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/joystick.cpp2
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);