From 6415dfd6383242fa41ea56016a7c8f8f34a63ce1 Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Mon, 9 Dec 2024 10:56:57 -0500 Subject: [PATCH] cdevice got changed to gdevice for SDL3 (thanks for the fix, Kate!) --- src/FNAPlatform/SDL3_FNAPlatform.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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