diff --git a/input/drivers_joypad/xinput_hybrid_joypad.c b/input/drivers_joypad/xinput_hybrid_joypad.c index 681f11d714..5a331cbe8e 100644 --- a/input/drivers_joypad/xinput_hybrid_joypad.c +++ b/input/drivers_joypad/xinput_hybrid_joypad.c @@ -712,14 +712,14 @@ static bool xinput_joypad_rumble(unsigned pad, /* Rumble state unchanged? */ if ( (new_state.wLeftMotorSpeed == state->wLeftMotorSpeed) - && (new_state.wRightMotorSpeed == state->wRightMotorSpeed)); + && (new_state.wRightMotorSpeed == state->wRightMotorSpeed)) return true; now = clock(); time_since_last_rumble = (double)(now - last_rumble_time[xuser]) / CLOCKS_PER_SEC; /* Rumble interval unelapsed? */ - if (time_since_last_rumble < RUMBLE_INTERVAL); + if (time_since_last_rumble < RUMBLE_INTERVAL) return true; if (g_XInputSetState) diff --git a/input/drivers_joypad/xinput_joypad.c b/input/drivers_joypad/xinput_joypad.c index c15fd72a4e..d400e1acec 100644 --- a/input/drivers_joypad/xinput_joypad.c +++ b/input/drivers_joypad/xinput_joypad.c @@ -437,7 +437,7 @@ static bool xinput_joypad_rumble(unsigned pad, /* Rumble state unchanged? */ if ( (new_state.wLeftMotorSpeed == state->wLeftMotorSpeed) - && (new_state.wRightMotorSpeed == state->wRightMotorSpeed)); + && (new_state.wRightMotorSpeed == state->wRightMotorSpeed)) return true; now = clock();