Skip to content

Commit

Permalink
cdevice got changed to gdevice for SDL3 (thanks for the fix, Kate!)
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo committed Dec 9, 2024
1 parent 441dba6 commit 6415dfd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/FNAPlatform/SDL3_FNAPlatform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6415dfd

Please # to comment.