directly compare result of rumble instead of storing an error int

This commit is contained in:
Evan Husted 2025-01-23 19:30:11 -06:00
parent 033f305872
commit b442d32b7c

View File

@ -125,9 +125,7 @@ namespace Ryujinx.Input.SDL2
result |= GamepadFeaturesFlag.Motion;
}
int error = SDL_GameControllerRumble(_gamepadHandle, 0, 0, 100);
if (error == 0)
if (SDL_GameControllerRumble(_gamepadHandle, 0, 0, 100) == 0)
{
result |= GamepadFeaturesFlag.Rumble;
}