Check if controller supports Rumble rather than trying to rumble for 100ms

This commit is contained in:
Evan Husted 2025-01-23 19:32:36 -06:00
parent b442d32b7c
commit 6619453aed

View File

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