From 515c2ebbcaa524dc88d7ac8e3a79aefee6ae2570 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Thu, 23 Feb 2023 16:59:19 -0800 Subject: [PATCH] fix controller double open --- src/Input/Input.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Input/Input.cs b/src/Input/Input.cs index bd5b2542..088fa43e 100644 --- a/src/Input/Input.cs +++ b/src/Input/Input.cs @@ -95,7 +95,7 @@ namespace MoonWorks.Input } else { - gamepads[slot].Handle = SDL.SDL_GameControllerOpen(index); + gamepads[slot].Handle = openResult; System.Console.WriteLine($"Gamepad added to slot {slot}!"); } return;