diff --git a/src/FNAPlatform/SDL3_FNAPlatform.cs b/src/FNAPlatform/SDL3_FNAPlatform.cs index 1863d52b..1e764bdb 100644 --- a/src/FNAPlatform/SDL3_FNAPlatform.cs +++ b/src/FNAPlatform/SDL3_FNAPlatform.cs @@ -255,7 +255,7 @@ public static string ProgramInit(LaunchParameters args) (uint) SDL.SDL_EventType.SDL_EVENT_GAMEPAD_ADDED, (uint) SDL.SDL_EventType.SDL_EVENT_GAMEPAD_ADDED ) == 1) { - INTERNAL_AddInstance(evt[0].cdevice.which); + INTERNAL_AddInstance(evt[0].gdevice.which); } if (OSVersion.Equals("Windows")) @@ -1094,11 +1094,11 @@ ref bool textInputSuppress // Controller device management else if (evt.type == (uint) SDL.SDL_EventType.SDL_EVENT_GAMEPAD_ADDED) { - INTERNAL_AddInstance(evt.cdevice.which); + INTERNAL_AddInstance(evt.gdevice.which); } else if (evt.type == (uint) SDL.SDL_EventType.SDL_EVENT_GAMEPAD_REMOVED) { - INTERNAL_RemoveInstance(evt.cdevice.which); + INTERNAL_RemoveInstance(evt.gdevice.which); } // Text Input