From b442d32b7c672b3fdc07bc81139fef8c6c60119f Mon Sep 17 00:00:00 2001 From: Evan Husted Date: Thu, 23 Jan 2025 19:30:11 -0600 Subject: [PATCH] directly compare result of rumble instead of storing an error int --- src/Ryujinx.Input.SDL2/SDL2Gamepad.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Ryujinx.Input.SDL2/SDL2Gamepad.cs b/src/Ryujinx.Input.SDL2/SDL2Gamepad.cs index 0f6602181..51f739c36 100644 --- a/src/Ryujinx.Input.SDL2/SDL2Gamepad.cs +++ b/src/Ryujinx.Input.SDL2/SDL2Gamepad.cs @@ -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; }