diff --git a/source/Joystick.cpp b/source/Joystick.cpp index 5ed22b1b..7441c288 100644 --- a/source/Joystick.cpp +++ b/source/Joystick.cpp @@ -507,7 +507,7 @@ static void DoAutofire(UINT uButton, BOOL& pressed) BOOL nowPressed = pressed; if (sg_PropertySheet.GetAutofire(uButton) && pressed) { - toggle[uButton] = (!lastPressed[uButton]) ? TRUE : toggle[uButton] = !toggle[uButton]; + toggle[uButton] = (!lastPressed[uButton]) ? TRUE : !toggle[uButton]; pressed = pressed && toggle[uButton]; } lastPressed[uButton] = nowPressed;