mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-03-13 19:20:18 +00:00
Fixed review findings
This commit is contained in:
parent
11868e49c0
commit
af3fec2c3f
1 changed files with 4 additions and 2 deletions
|
@ -79,10 +79,12 @@ namespace Ryujinx.Input.SDL2
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// sometimes a JoyStick connected event fires after the app starts even though it was connected before
|
// 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
|
// so it is rejected to avoid doubling the entries.
|
||||||
if (_gamepadsIds.Contains(id))
|
if (_gamepadsIds.Contains(id))
|
||||||
|
{
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (_gamepadsInstanceIdsMapping.TryAdd(joystickInstanceId, id))
|
if (_gamepadsInstanceIdsMapping.TryAdd(joystickInstanceId, id))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue