Commit Graph

12202 Commits

Author SHA1 Message Date
T3hD0gg ec9a9fee58 Add Thrustmaster TMX VID & PID to wheel device list.
(cherry picked from commit 594edb6bd2)
2024-09-18 22:22:01 -07:00
Cameron Gutman e239295491 wayland: Fix memory leaks 2024-09-18 20:44:26 -04:00
Ozkan Sezer 46ee6a3848 update config.guess and config.sub from mainstream 2024-09-18 17:33:10 +03:00
Ozkan Sezer d6b7be8abd autotools, libtool, win32: add 'aarch64' support to the file magic test.
From libtool development commit 1638a6407573b74517b57a0f6e596918344a4394
2024-09-17 14:10:02 +03:00
Sam Lantinga 1b26b54402 Verify that the subsystems were successfully initialized
(cherry picked from commit 0548050fc5)
2024-09-15 12:05:31 -07:00
Loymdayddaud bc9d12e560 Typo fix 2024-09-14 21:13:56 -07:00
Anders Jenbo d9b4b7d0e0 Spell "unknown" correctly
(cherry picked from commit ee377793fe)
2024-09-13 12:29:56 -07:00
Ryan C. Gordon 58f2586b44
pulseaudio: Hotplug thread fixes.
This used a tiny stack, which apparently upsets Blender for various
technical reasons. Instead, just use the default stack size, which should
give it plenty of space to work.

If the thread failed to create, we would then wait on a semaphore that would
never trigger, so don't do that anymore!

Fixes #10806.

(cherry-picked from commit b7dc30ca24)
2024-09-12 18:00:58 -04:00
SDL Wiki Bot ea820edc62 Sync SDL2 wiki -> header 2024-09-10 15:35:30 +00:00
Frank Praznik 8fa99993af wayland: Send exposure events when showing or resizing the window
Clients may rely on this event to signal when they should redraw themselves, so send it when appropriate.
2024-09-10 10:19:48 -04:00
Simon McVittie 54757c29dd x11vulkan: Use the correct SONAME of libX11-xcb.so.1 on Linux, etc.
On most Unix platforms supported by SDL, the canonical name used to load
a library at runtime includes its ABI major version, and the name
without a version is not guaranteed to exist on non-developer systems.
libX11-xcb.so.1 is correct on Linux, and probably on other Unix
platforms like FreeBSD.

A notable exception is OpenBSD, which apparently does not use
ABI-suffixed names, so continue to use libX11-xcb.so there.

Signed-off-by: Simon McVittie <smcv@collabora.com>
(cherry picked from commit 7713a7eec7)
2024-09-09 12:54:02 -07:00
Sam Lantinga f5ed158d1f SDL_XINPUT_Enabled() returns false until XInput DLL is successfully loaded
We make sure we initialize XInput first, so that anything checking whether it's enabled gets a valid result based on whether we were able to load it or not.

(cherry picked from commit 8f46cb771c)
2024-09-06 11:24:43 -07:00
Sam Lantinga 5aadfd4eaf Fixed race condition at startup that could cause a crash in the XInput driver
(cherry picked from commit 6d7c211faf)
2024-09-06 10:17:37 -07:00
Sam Lantinga 224a37faab Fixed memory leak in testthread
(cherry picked from commit dfe6efcd2d)
2024-09-05 07:11:56 -07:00
Sam Lantinga a75227aaeb Use atomic variables for thread communication
Fixes https://github.com/libsdl-org/SDL/issues/10711

(cherry picked from commit a0f36fb85b)
2024-09-05 07:09:27 -07:00
Ozkan Sezer 37d3eea939 testlocale, testplatform, testqsort: replace exit(1) calls with return 1 2024-09-05 00:28:32 +03:00
Sam Lantinga 2834d8b3b7 Revert "Sync SDL2 wiki -> header"
This reverts commit f23cc950f5.

This edit was incorrect.
2024-09-04 09:15:20 -07:00
Sam Lantinga 10b4a79379 Make newer DRM and GBM functions optional
Fixes https://github.com/libsdl-org/SDL/issues/10675

(cherry picked from commit d501f6db07)
2024-09-02 11:11:02 -07:00
Anonymous Maarten 57f1ea71ab Increase maximum line length of SDLTest_LogAllocations 2024-09-01 02:18:47 +02:00
Anonymous Maarten 2ae8b4c651 test: use SDL_test for parsing arguments in all non-interactive tests 2024-08-31 23:49:22 +02:00
Anonymous Maarten 47a525610c ci: build in RelWithDebInfo mode 2024-08-31 23:49:22 +02:00
Anonymous Maarten 510eda22f1 SDL_test: print stack traces of leaks on Windows
(ported from SDL3)
2024-08-31 23:49:22 +02:00
Anonymous Maarten 877c19da41 SDL_test: do late addres to name conversion, if libunwind supports it 2024-08-31 23:49:22 +02:00
Anonymous Maarten 622b511613 Copy sdlprocdump from SDL3 2024-08-31 23:49:22 +02:00
Anonymous Maarten 564765d22b ctest: fail if there are outstanding allocations
backport of b68ac011e0
2024-08-31 23:49:22 +02:00
Anonymous Maarten 1260ada519 SDL_test: use mutex based on SDL_atomic_t in memory tracking
SDL_Mutex or SDL_SpinLock cannot be used as these use SDL_malloc internally.

Backport of c7a1876536
2024-08-31 23:49:22 +02:00
Ozkan Sezer 4eac44bed4 RAWINPUT_JoystickOpen: add missing SDL_stack_free() calls.
Fixes https://github.com/libsdl-org/SDL/issues/10574.
(cherry picked from commit 845212388e)
2024-08-25 11:05:50 +03:00
Francisco Javier Trujillo Mata 1b8d5631ef Allow MessageBox to work without window 2024-08-23 11:50:00 -07:00
Sam Lantinga 0de601dc64 Added support for the Retro-bit Controller in PS3 mode
Fixes https://github.com/libsdl-org/SDL/issues/10557

(cherry picked from commit e75175129f)
2024-08-19 16:47:54 -07:00
Sam Lantinga a3546e5069 PSP: Throw SDL_EVENT_QUIT event upon exit (thanks @sharkwouter!)
Closes https://github.com/libsdl-org/SDL/pull/10565

(cherry picked from commit 59ac561062)
2024-08-18 08:30:03 -07:00
Sam Lantinga 4bd07ea9a4 Revert "PSP: Throw SDL_Quit event upon exit"
This reverts commit e52e68d160.
2024-08-18 08:27:29 -07:00
Wouter Wijsman e52e68d160 PSP: Throw SDL_Quit event upon exit 2024-08-18 08:22:20 -07:00
Ozkan Sezer 30972d7e7f SDL_x11mouse.c: avoid -Wunused-variable if xinput2 is not available 2024-08-17 11:23:32 +03:00
ds-sloth 2824d138b9
SDL_rwops.c: stdio_seek - skip API call for RW_SEEK_CUR with 0 offset
Reference Issue #10556.
2024-08-16 17:12:34 -04:00
Frank Praznik 8fcbf972c6 wayland: Send fake warp coordinates when emulating warps with relative mode
Send the fake warp coordinates when emulating warps with relative mode to ensure that it appears that the cursor is always reset to where the application expects it to be.

Fixes cases where games can continue moving the camera if the mouse is lifted during motion.
2024-08-16 11:24:13 -04:00
Frank Praznik 5b57573439 x11: Track cursor visibility internally
Cursor visibility in the SDL input layer only reflects whether ShowCursor/HideCursor was called. In the case of relative mode, the cursor can be hidden, but the SDL_Mouse visibility flag will be true.

Track cursor visibility separately in the X11 driver. Fixes the cursor becoming visible when using the warping relative mode with XWayland.

(cherry picked from commit b0713a7d30)
2024-08-16 10:34:36 -04:00
Sam Lantinga b360214950 Use drmModeAddFB() if drmModeAddFB2WithModifiers() fails
Fixes https://github.com/libsdl-org/SDL/issues/10276

(cherry picked from commit 8e99ec34bb)
2024-08-15 11:53:02 -07:00
Wohlstand dd6c663918 SDL_vitatouch.c: Fixed the incorrect touch device IDs
- Begining of device ID with 0 violates the SDL's specification that means the 0 is an error, invalid, failure, etc. But on Vita here it's an actual device...
- Replacing 0 and 1 with 1 and 2 to resolve this violation.
2024-08-14 08:32:02 -07:00
Anonymous Maarten 764c44db02 cmake/test: don't test swift on ios/tvos platform 2024-08-14 10:35:43 +00:00
Anonymous Maarten 52090046fe cmake: ios and tvos applications need to link to SDL2main library 2024-08-14 10:35:43 +00:00
Anonymous Maarten 3d7007fb2d testgles: ignore GLES deprecation on Apple platforms 2024-08-14 10:35:43 +00:00
Anonymous Maarten 248cb3ca9c Fix -Wdeclaration-after-statement warnings 2024-08-14 10:35:43 +00:00
Anonymous Maarten 354a35c1d7 cmake: port back Apple changes from SDL3 2024-08-14 10:35:43 +00:00
Sam Lantinga 70890b175e Fixed build 2024-08-13 07:39:43 -07:00
Ilya Mizus 586a2dc721 Fixed secondary screens on KMSDRM (#10535)
* Removed window movement to left top corner that breaks secondary screens on KMSDRM

(cherry picked from commit ce98550cbb)
2024-08-13 07:20:07 -07:00
Ryan C. Gordon 155c3bb0a3
SDL_GLattr: formatted wiki documentation to be wikiheaders-friendly.
Reference https://github.com/libsdl-org/sdlwiki/issues/544
2024-08-12 01:23:12 -04:00
KaJe 5ecbc00f36 Add Cammus C12 VID & PID to wheel device list.
Add Cammus C12 in the SDL wheel list to enable wheel detection for them.

(cherry picked from commit e1571d704d)
2024-08-09 06:48:49 -07:00
Sam Lantinga a5bff78d81 kmsdrm: free the connector when looking for available devices
Fixes https://github.com/libsdl-org/SDL/issues/10499

(cherry picked from commit 1a57ea7fba)
2024-08-08 09:29:38 -07:00
Sam Lantinga 5ca0639a42 Fixed crash when the current mouse capture window is destroyed
Fixes https://github.com/libsdl-org/SDL/issues/10494

(cherry picked from commit 91d97a367e)
2024-08-07 12:28:53 -07:00
hsnovel 81252eb06d add failsafe for querying cache line size on linux 2024-08-06 09:51:00 -07:00