|
@ -21,7 +21,8 @@ |
|
|
|
|
|
|
|
|
// CHANGELOG
|
|
|
// CHANGELOG
|
|
|
// (minor and older changes stripped away, please see git history for details)
|
|
|
// (minor and older changes stripped away, please see git history for details)
|
|
|
// 2024-07-18: Update for SDL3 api changes: SDL_GetClipboardText() string ownership change. (#7801)
|
|
|
// 2024-07-22: Update for SDL3 api changes: SDL_GetGamepads() memory ownership change. (#7807)
|
|
|
|
|
|
// 2024-07-18: Update for SDL3 api changes: SDL_GetClipboardText() memory ownership change. (#7801)
|
|
|
// 2024-07-15: Update for SDL3 api changes: SDL_GetProperty() change to SDL_GetPointerProperty(). (#7794)
|
|
|
// 2024-07-15: Update for SDL3 api changes: SDL_GetProperty() change to SDL_GetPointerProperty(). (#7794)
|
|
|
// 2024-07-02: Update for SDL3 api changes: SDLK_x renames and SDLK_KP_x removals (#7761, #7762).
|
|
|
// 2024-07-02: Update for SDL3 api changes: SDLK_x renames and SDLK_KP_x removals (#7761, #7762).
|
|
|
// 2024-07-01: Update for SDL3 api changes: SDL_SetTextInputRect() changed to SDL_SetTextInputArea().
|
|
|
// 2024-07-01: Update for SDL3 api changes: SDL_SetTextInputRect() changed to SDL_SetTextInputArea().
|
|
@ -639,7 +640,7 @@ static void ImGui_ImplSDL3_UpdateGamepads() |
|
|
{ |
|
|
{ |
|
|
ImGui_ImplSDL3_CloseGamepads(); |
|
|
ImGui_ImplSDL3_CloseGamepads(); |
|
|
int sdl_gamepads_count = 0; |
|
|
int sdl_gamepads_count = 0; |
|
|
SDL_JoystickID* sdl_gamepads = SDL_GetGamepads(&sdl_gamepads_count); |
|
|
const SDL_JoystickID* sdl_gamepads = SDL_GetGamepads(&sdl_gamepads_count); |
|
|
for (int n = 0; n < sdl_gamepads_count; n++) |
|
|
for (int n = 0; n < sdl_gamepads_count; n++) |
|
|
if (SDL_Gamepad* gamepad = SDL_OpenGamepad(sdl_gamepads[n])) |
|
|
if (SDL_Gamepad* gamepad = SDL_OpenGamepad(sdl_gamepads[n])) |
|
|
{ |
|
|
{ |
|
@ -647,7 +648,6 @@ static void ImGui_ImplSDL3_UpdateGamepads() |
|
|
if (bd->GamepadMode == ImGui_ImplSDL3_GamepadMode_AutoFirst) |
|
|
if (bd->GamepadMode == ImGui_ImplSDL3_GamepadMode_AutoFirst) |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
SDL_free(sdl_gamepads); |
|
|
|
|
|
bd->WantUpdateGamepadsList = false; |
|
|
bd->WantUpdateGamepadsList = false; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|