SDL Wiki Bot
3eba0b6f8a
Sync SDL2 wiki -> header
...
[ci skip]
2025-12-14 07:48:57 +00:00
Peppersawce
bacfd3c252
Make BUrl not 'ambiguous'
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
2025-12-10 12:28:20 +01:00
PulkoMandy
47312cf0f3
Use a BHandler attached to the application instead of a BLooper
...
When there is already a BApplication, SDL cannot start its own. In a
previous version, it instead started a separate looper. This results in
some extra complexity as there is now yet another thread to manage (in
addition to the main thread, the application thread, and the window
threads).
Instead, create a BHandler and attach it to the existing BApplication,
which allows it to receive messages in the already existing application
thread.
2025-12-10 12:28:20 +01:00
Sam Lantinga
d9836d15e7
Lock joysticks when they are connected/disconnected on emscripten
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
Fixes https://github.com/libsdl-org/SDL/issues/11499
(cherry picked from commit 0281071243 )
2025-12-08 21:00:22 -08:00
Cameron Gutman
3146374e4a
egl: Fix X11 EGL window creation on Nvidia
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
This is a port of 808a3f5 to SDL2.
Fixes #13094
2025-12-05 23:51:56 -05:00
Cameron Gutman
1d852d1c28
quit: don't call signal() if we're using sigaction()
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
At best, this is a no-op.
At worst, it might:
- Clobber a signal handler someone registered after us
- Overwrite the signal mask or flags
- Cause unregistration to fail (sigaction() isn't guaranteed to return the exact pointer passed to signal())
2025-12-01 18:56:12 -06:00
Sam Lantinga
6ad5a966ea
Revert "Use DefWindowProc for the initial SDL window proc"
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
This reverts commit afeeef9cf5 .
2025-11-24 19:06:13 -08:00
Anonymous Maarten
a65111bd2d
Add SDL_(Get|Set)ClipRect automation test
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
Co-authored-by: Sam Lantinga <slouken@libsdl.org >
2025-11-22 10:43:46 +00:00
yuanhecai
c44d37b5cf
loongarch: Switch to software render when using LG100 series
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
2025-11-14 07:14:48 -08:00
Sam Lantinga
f36d683b61
Check for wine_get_version() to detect Wine/Proton
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
If this application is being run under Wine but Steam doesn't know that, Steam won't set STEAM_COMPAT_PROTON. So we'll use wine_get_version() to detect that we're running under Wine instead.
(cherry picked from commit e2e8f86076 )
2025-11-12 23:07:51 -08:00
Sam Lantinga
5bdf7bc625
Don't check SteamVirtualGamepadInfo when running as Wine
...
Wine will ignore the Steam Virtual Gamepad if it looks like it has the original (blocked) controller VID/PID.
Fixes https://github.com/libsdl-org/SDL/issues/14410
(cherry picked from commit 493bc621e4 )
2025-11-12 23:07:51 -08:00
Petar Popovic
38e0094637
Fix uninitialized variable warning when compiling tests with clang compiler
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
2025-11-07 07:56:26 -08:00
Ozkan Sezer
ba38fda752
Revert "pipewire: disable -Wdeclaration-after-statement for pipewire headers"
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
This reverts commit f9435eab16 .
Issue in pipewire release candidate 1.5.81 has been resolved in 1.5.82
Reference issue: Fixes: https://github.com/libsdl-org/SDL/issues/14343
2025-11-06 19:55:02 +03:00
yuanhecai
14eebdab3c
loongarch: add SDL_FillRect4LSX opt
2025-11-06 07:27:56 -08:00
yuanhecai
686c18026b
loongarch: add BlitRGBtoRGBPixelAlphaLSX opt
2025-11-06 07:27:56 -08:00
Sam Lantinga
6db23faa44
Clamp the audio drain delay to 100 ms
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
Fixes https://github.com/libsdl-org/SDL/issues/9829
(cherry picked from commit 0882623092 )
2025-11-02 11:20:39 -08:00
Sam Lantinga
6570d9e23f
Don't consider USB devices which have already been skipped
...
Fixes https://github.com/libsdl-org/SDL/issues/14367
2025-11-02 09:25:13 -08:00
Sam Lantinga
2bb0eb4641
Fixed the right touchpad calculation for the BLE Steam Controller
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
Fixes https://github.com/libsdl-org/SDL/issues/14368
(cherry picked from commit eb87a36940 )
2025-11-02 08:34:16 -08:00
Sam Lantinga
afeeef9cf5
Use DefWindowProc for the initial SDL window proc
...
This makes sure that anything that hooks window creation to set up window proc hooks will call DefWindowProc instead of infinitely recursing when we set up our window proc afterwards.
Fixes https://github.com/libsdl-org/SDL/issues/10529
(cherry picked from commit 6c4f2bd83d )
2025-11-02 07:24:54 -08:00
Petar Popovic
398bacbac3
Fix leak in SDL_GameControllerTypeForIndex()
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
2025-11-01 08:40:12 -07:00
Ozkan Sezer
f9435eab16
pipewire: disable -Wdeclaration-after-statement for pipewire headers
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
Fixes: https://github.com/libsdl-org/SDL/issues/14343
2025-11-01 00:45:10 +03:00
Sam Lantinga
66ac6f4ea7
Revert "Remove special-case Xbox 360 wireless controller mappings"
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
This reverts commit 4151df83fe .
2025-10-27 17:37:43 -07:00
Dave Wickham
4151df83fe
Remove special-case Xbox 360 wireless controller mappings
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
Effectively https://github.com/libsdl-org/SDL/pull/14339 for SDL2
Fixes https://github.com/libsdl-org/SDL/issues/14324
2025-10-27 08:56:00 -07:00
Ozkan Sezer
00d4f1c2c4
SDL_kmsdrmvideo.c: fix build in C90 mode
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
2025-10-26 04:35:20 +03:00
Sam Lantinga
1c19bee000
Perform full rectangle intersection for empty rects
...
If we don't do that, we leave the x and y values uninitialized.
Fixes https://github.com/libsdl-org/sdl12-compat/issues/365
(cherry picked from commit ffd0ca4391 )
2025-10-25 13:51:58 -07:00
danprice142
639c7a1e52
Sdl2 Add support for launchOnExit URI for WinRT
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
Implements extraction and launching of a 'launchOnExit' URI parameter from protocol activation in SDL_WinRTApp. The URI is stored and launched on app exit, suspension, or window close, enabling return-to-caller scenarios for protocol-activated apps.
2025-10-25 08:13:45 -07:00
Ozkan Sezer
c9889fb013
updated dynapi after latest api addition
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
2025-10-24 21:11:50 +03:00
SDL Wiki Bot
1edb3283b0
Sync SDL2 wiki -> header
...
[ci skip]
2025-10-24 17:35:46 +00:00
danprice142
3e1cebed3c
Add protocol activation URI support for WinRT ( #14309 )
2025-10-24 10:34:44 -07:00
SDL Wiki Bot
66d87bf0e1
Sync SDL2 wiki -> header
...
[ci skip]
2025-10-13 06:06:49 +00:00
Frank Praznik
235e4870af
wayland: Special-case relative warp mode to deliver accelerated relative motion
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
The Wayland backend lacks pointer warp functionality, so special-case the relative warp mode hint to deliver accelerated relative motion deltas, which is ultimately what the client wants by enabling this hint.
2025-10-09 11:19:27 -04:00
AL2009man
8ef0a07a52
Disable SDL_HINT_JOYSTICK_RAWINPUT by default
...
backported from SDL3 commit aa870d5
Fixes #13047
2025-10-08 11:34:55 -07:00
Ozkan Sezer
26d1eadda3
ci: bump cross-platform-actions.
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
(cherry-picked from commit 97c1df66a8 )
2025-10-07 14:28:10 +03:00
Wohlstand
39a0fab4d7
SDL2: PSP: Fixed render-to-texture larger than screen
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
I found if I try to make texture bigger than screen and use it as a frame buffer, it gets cuts of content. To ensure that render will be valid, I making sure scissors were initialised properly.
P.S. This works on hardware, however, emulator PPSSPP seems has a bug in this case, so I going to report that and making the simple demo.
2025-09-29 19:10:12 -07:00
Wohlstand
67141e5079
SDL_render_psp.c: Implemented working viewport support
...
Since it's no known way to use genuine viewport with PSP SDK, I implemented the workaround using manually added/subtracted offsets to vertices passing to the render API. To assign viewport and cliprect in valid way, I copied part of code from the Vita's module and adjusted it to work on PSP.
2025-09-29 19:10:12 -07:00
Brad Smith
641201a99a
Use elf_aux_info() on OpenBSD
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
NFC for ARMv7. For PowerPC move elf_aux_info() to higher priority over
sysctl for newer systems.
(cherry picked from commit b299e0de46 )
2025-09-27 09:01:04 -07:00
Fierelier
7b28fb29bd
[SDL3] [PS2] Framebuffer resolution + 240p/480p + PAL support ( #13993 )
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
* Do not override NTSC/PAL
* Fix PS2 build instructions
* Add PS2 GS hints
Allows for switching between NTSC/PAL, progressive/interlaced, etc
(cherry picked from commit 3fd0b46215 )
2025-09-26 07:46:13 -07:00
Sam Lantinga
ecb72142fd
Removed UWP workflow from CI
...
The GitHub runners no longer have the needed SDK for this
2025-09-19 08:33:00 -07:00
krnl32
9859c05178
Added a default case to the switch statement in the HEADER FILE to prevent compiler warnings about missing defaults. This change helps avoid compilation breaks when warnings are treated as errors.
2025-09-16 17:16:50 -07:00
Ozkan Sezer
07c3b3fb7c
fix build.
2025-09-15 20:29:50 +03:00
Ozkan Sezer
9343246616
SDL_endian.h: don't add _m_prefetch hack for clang-cl if available as a builtin
...
Fixes: https://github.com/libsdl-org/SDL/issues/13952 .
(backport from SDL3 commit 81f2f44843 )
2025-09-15 20:10:50 +03:00
Sam Lantinga
b55059b487
Remove Windows 32-bit ARM build from CI
...
This architecture is deprecated and is now failing with:
Windows SDK 10.0.22621.0 : 'C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\um' not found or was incomplete
Fixes https://github.com/libsdl-org/SDL/issues/13949
(cherry picked from commit cc3274b6f1 )
2025-09-14 18:03:17 -07:00
Sam Lantinga
55b599d693
Only use a transparent cursor on Windows when connected via RDP
...
VMware relies on the cursor being set to NULL to optimize relative mouse motion for games.
We should also revisit whether current RDP works better with a NULL cursor or a transparent cursor.
Fixes https://github.com/libsdl-org/SDL/issues/13700
(cherry picked from commit dac6af4ba6 )
2025-09-14 17:31:32 -07:00
Wes Lord
2eb5bff91a
Add missing parameters and return types to SDL2 header docs ( #13162 )
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
2025-09-13 07:37:33 -07:00
Gianfranco Berardi
be6ab7f9a6
Provide Android targetsdk 35 support in SDL2 ( #13776 )
2025-09-13 07:17:28 -07:00
Joshua Root
eb974470ec
Guard use of @available in SDL_cocoaevents.m
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
Older compilers don't understand this syntax.
2025-09-07 16:46:19 -07:00
Ozkan Sezer
f0e7000f92
alsa: fix signatures of snd_pcm_info_free and snd_pcm_hw_params_get_rate
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
Reference issue: https://github.com/libsdl-org/SDL/issues/13845 .
2025-09-02 17:02:32 +03:00
Ozkan Sezer
d2ab01b8bb
openslES: really fix build..
2025-09-01 20:38:37 +03:00
Ozkan Sezer
f5246d0181
openslES: fix build
2025-09-01 20:25:28 +03:00
Ryan C. Gordon
b8c802632b
openslES: OpenSL ES on Android only supports two formats, limit to that.
...
(Three with the floating point extension, which we use.)
This is according to:
https://developer.android.com/ndk/guides/audio/opensl/opensl-for-android
Previously, this would accept a request for Sint8 or Sint32 and disaster
would ensue.
Fixes #13779 .
(cherry picked from commit 0b2a003a35 )
(cherry picked from commit 7323104f97 )
2025-09-01 11:37:10 -04:00