updated sdl to fix touchpad issue

This commit is contained in:
georgemoralis 2024-10-07 12:46:50 +03:00
parent 75c92a7cd1
commit 43e6344ceb
4 changed files with 4 additions and 4 deletions

2
externals/date vendored

@ -1 +1 @@
Subproject commit 51ce7e131079c061533d741be5fe7cca57f2faac Subproject commit dd8affc6de5755e07638bf0a14382d29549d6ee9

2
externals/sdl3 vendored

@ -1 +1 @@
Subproject commit 0548050fc5a4edf1f47c3633c2cd06d8762b5532 Subproject commit 54e622c2e6af456bfef382fae44c17682d5ac88a

View file

@ -103,7 +103,7 @@ s32 SDLAudio::AudioOutOutput(s32 handle, const void* ptr) {
const size_t data_size = port.samples_num * port.sample_size * port.channels_num; const size_t data_size = port.samples_num * port.sample_size * port.channels_num;
SDL_bool result = SDL_PutAudioStreamData(port.stream, ptr, data_size); bool result = SDL_PutAudioStreamData(port.stream, ptr, data_size);
lock.unlock(); // Unlock only after necessary operations lock.unlock(); // Unlock only after necessary operations

View file

@ -581,7 +581,7 @@ static void UpdateMouseData() {
// (below) // (below)
// SDL_CaptureMouse() let the OS know e.g. that our imgui drag outside the SDL window boundaries // SDL_CaptureMouse() let the OS know e.g. that our imgui drag outside the SDL window boundaries
// shouldn't e.g. trigger other operations outside // shouldn't e.g. trigger other operations outside
SDL_CaptureMouse((bd->mouse_buttons_down != 0) ? SDL_TRUE : SDL_FALSE); SDL_CaptureMouse((bd->mouse_buttons_down != 0) ? true : false);
SDL_Window* focused_window = SDL_GetKeyboardFocus(); SDL_Window* focused_window = SDL_GetKeyboardFocus();
const bool is_app_focused = (bd->window == focused_window); const bool is_app_focused = (bd->window == focused_window);