mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-09 05:08:43 +00:00
updated sdl to fix touchpad issue (#1275)
This commit is contained in:
2
externals/date
vendored
2
externals/date
vendored
Submodule externals/date updated: 51ce7e1310...dd8affc6de
2
externals/sdl3
vendored
2
externals/sdl3
vendored
Submodule externals/sdl3 updated: 0548050fc5...54e622c2e6
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user