sdl: Fix use of functions that now return SDL_bool (#1160)

This commit is contained in:
squidbus
2024-09-29 20:47:55 -07:00
committed by GitHub
parent d9f287eaa2
commit 398019867b
3 changed files with 5 additions and 5 deletions

View File

@@ -127,7 +127,7 @@ void GameController::SetLightBarRGB(u8 r, u8 g, u8 b) {
bool GameController::SetVibration(u8 smallMotor, u8 largeMotor) {
if (m_sdl_gamepad != nullptr) {
return SDL_RumbleGamepad(m_sdl_gamepad, (smallMotor / 255.0f) * 0xFFFF,
(largeMotor / 255.0f) * 0xFFFF, -1) == 0;
(largeMotor / 255.0f) * 0xFFFF, -1);
}
return true;
}