From af3fec2c3feb2149f4e81491a12d1a5b4f6b694e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Gierszewski?= Date: Tue, 14 Jun 2022 23:34:06 +0200 Subject: [PATCH] Fixed review findings --- Ryujinx.Input.SDL2/SDL2GamepadDriver.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Ryujinx.Input.SDL2/SDL2GamepadDriver.cs b/Ryujinx.Input.SDL2/SDL2GamepadDriver.cs index 47d24c9b2..b20a76b84 100644 --- a/Ryujinx.Input.SDL2/SDL2GamepadDriver.cs +++ b/Ryujinx.Input.SDL2/SDL2GamepadDriver.cs @@ -79,10 +79,12 @@ namespace Ryujinx.Input.SDL2 return; } - // sometimes a JoyStick connected event fires after the app starts even though it was connected before - // so it is rejected to avoid doubling the entries + // Sometimes a JoyStick connected event fires after the app starts even though it was connected before + // so it is rejected to avoid doubling the entries. if (_gamepadsIds.Contains(id)) + { return; + } if (_gamepadsInstanceIdsMapping.TryAdd(joystickInstanceId, id)) {