Anonymous Maarten
dface78331
ci: don't do 'brew install pkg-config' anymore
...
Assume it is installed by default
2024-11-22 21:47:15 +01:00
Wouter Wijsman
f39c5cf989
PSP: Add locale support
2024-11-22 08:37:39 -08:00
Alibek Omarov
f9c50e1bf7
Add proguard rules for SDL2
...
Based on existing work by @AntTheAlchemist on SDL3 branch.
2024-11-20 10:13:53 -08:00
Anonymous Maarten
e924f12a7b
cmake: Compatibility with CMake < 3.10 will be removed in a future CMake version
2024-11-17 21:53:32 +01:00
Anonymous Maarten
c672c0e80f
ci: pin MSVC ARM Windows SDK version to 10.0.22621.0
2024-11-17 21:33:53 +01:00
Ozkan Sezer
51570d9257
build system: disable 3dNow! support by default
...
Closes: https://github.com/libsdl-org/SDL/issues/11472 .
2024-11-17 17:55:32 +03:00
jimtahu
d1af211010
Always Use Next Display Index
...
WIN_AddDisplay asserted that the returned index is the expected next
one in the list. This can be an unexpected number when displays are
add and removed in a batch (eg, Remote Desktop disconnect and reconnect).
Instead always just make use of the next index, even if it is not the
expected next index value. This fixes issue #9105
(cherry picked from commit bee8874629 )
2024-11-15 14:35:55 -08:00
rsn8887
6dcf75710c
SDL_vitatouch.c: re-enable front touch on Vita
2024-11-15 10:13:35 -08:00
Ryan C. Gordon
17b9ed7d82
audio: Favor OpenSL ES over AAudio.
...
There are low-latency fixes in SDL3 that really need to be backported to SDL2
before AAudio will be nicer across a range of devices, so OpenSL ES is safer
in SDL2 at the moment. At least, we suspect as such.
Fixes #11457 .
2024-11-13 18:22:59 -05:00
Sam Lantinga
f1a3a18c1e
Removed SDL_HINT_ENABLE_STEAM_CONTROLLERS
...
This was only respected on Steam Link hardware, which now uses SDL3 where it has been replaced by SDL_HINT_JOYSTICK_HIDAPI_STEAM.
2024-11-08 15:23:31 -08:00
L zard
b308172862
testautomation keyboard: use space instead of a
...
(cherry picked from commit 1ed1bc1d5d )
2024-11-08 18:21:32 +03:00
Zack Middleton
761ea32b74
Fix SDL_PRIs64 to use standard PRId64
...
PRIs64 doesn't exist in C standards.
(cherry picked from commit 8a2cac7aaa )
2024-11-08 12:40:50 +03:00
Sam Lantinga
74ff82f4a2
Support multiple joystick buttons bound to the same gamepad button
...
(cherry picked from commit ed943318e2 )
2024-11-05 11:50:18 -08:00
Ryan C. Gordon
67b537cef4
.wikiheader-options: Treat SDL int types (Uint64, etc) as API prefixes.
...
This makes any reference to them in the docs link to their wiki pages.
Also fixup the integer type documentation, so the SDL2 wiki _has_ actual
pages for them. :)
2024-11-01 23:52:03 -04:00
Anonymous Maarten
48aa1cccf7
Port build-script from SDL3
...
[ci skip]
2024-11-02 01:58:46 +01:00
SDL Wiki Bot
15bc3f25ee
Sync SDL2 wiki -> header
...
[ci skip]
2024-11-01 19:42:53 +00:00
Wouter Wijsman
7cbb131c75
PSP: Allow building tests in parallel
2024-11-01 08:56:13 -04:00
Sam Lantinga
3b7a45853c
Fixed the PS5 controller face buttons on Amazon Fire TV, Android 11
...
(cherry picked from commit 09495059df )
2024-10-30 05:23:54 -07:00
Sam Lantinga
d2b9ecd281
Revert "aaudio: Set low-latency audio mode."
...
This reverts commit 1e016fd5ea .
In order to use low latency mode, you need to set low latency callbacks. This has always been recommended and is apparently required on Android 15. SDL3 has these implemented correctly but SDL2 does not, so we should revert this for now.
Fixes https://github.com/libsdl-org/SDL/issues/11376
2024-10-29 22:32:59 -07:00
dv-senna
478dff3585
SDL_vulkan.h: undefine VK_DEFINE_HANDLER and VK_DEFINE_NON_DISPATCHABLE_HANDLE
...
Allows including vulkan.hpp in user code in C++ before SDL_vulkan.h w/o errors.
Fixes: https://github.com/libsdl-org/SDL/issues/11328 .
(cherry picked from commit 149ecffd6f )
2024-10-29 20:35:10 +03:00
Ryan C. Gordon
5b0e838a74
wasapi: Deal with device buffer sizes changing.
...
Otherwise, it would fill the previous size's worth of data into the current
size's buffer.
Fixes #11122 .
2024-10-28 13:43:48 -04:00
SDL Wiki Bot
96e7306a7a
Sync SDL2 wiki -> header
...
[ci skip]
2024-10-27 21:41:54 +00:00
Jordan Christiansen
a22baafcf4
docs: Explain events for already plugged in controllers
2024-10-27 14:41:06 -07:00
Ryan C. Gordon
e5348c611d
cocoa: Patched to compile.
2024-10-24 23:59:12 -04:00
Ryan C. Gordon
5cb87ff99f
cocoa: Make sure GL context destruction happens on the main thread.
...
Fixes #10900 .
(cherry picked from commit 344546b4ea )
2024-10-24 23:48:58 -04:00
Ryan C. Gordon
00f15dd215
emscripten: scale mousewheel X coordinates correctly, not just Y coordinates.
...
Fixes #10454 .
(cherry picked from commit 4ea26a7771 )
2024-10-23 23:39:40 -04:00
Ivan Epifanov
52714d5063
VITA: fix SDL_ShowMessageBox by using different memory type
2024-10-22 12:19:50 -07:00
SDL Wiki Bot
bcf1397e33
Sync SDL2 wiki -> header
...
[ci skip]
2024-10-20 01:02:07 +00:00
SDL Wiki Bot
1af0b39833
Sync SDL2 wiki -> header
...
[ci skip]
2024-10-20 00:51:30 +00:00
SDL Wiki Bot
4ca7a19348
Sync SDL2 wiki -> header
...
[ci skip]
2024-10-19 18:04:39 +00:00
Ivan Epifanov
86fd4ed83c
VITA: fix yuv texture update
2024-10-17 07:54:02 -07:00
Sam Lantinga
b6fa4dc794
Only use Steam Virtual Gamepads if we're running under Steam
...
Fixes https://github.com/libsdl-org/SDL/issues/11214
Fixes https://github.com/libsdl-org/SDL/issues/11215
(cherry picked from commit 8a30def5f2 )
2024-10-16 17:51:50 -07:00
Sam Lantinga
cfb3db01dc
Added support for the Steam Virtual Gamepad on macOS Sequoia
...
(cherry picked from commit d7b1ba1bfc )
2024-10-16 17:51:50 -07:00
Ozkan Sezer
a976f7f71b
SDL_stdinc.h: provide a prototype for strdup for __clang_analyzer__ case
...
Because strdup is not ANSI but POSIX, and its prototype might be hidden..
Reference issue: https://github.com/libsdl-org/SDL/issues/11219 .
(cherry picked from commit 3ebfdb04be )
2024-10-16 22:03:50 +03:00
Pierre Wendling
378234437f
VisualC: Set the correct component to false.
...
When SDL2_main would not be found, it would incorrectly flag the shared SDL2 library as not found.
2024-10-13 09:00:35 -07:00
Cameron Cawley
23d456e146
3DS: Support simple message boxes
2024-10-12 16:07:34 -07:00
Cameron Cawley
d7bb56f163
3DS: Only bundle resources with tests that need them
2024-10-12 16:06:54 -07:00
Cameron Cawley
084dbb6410
Allow for more fine tuning of Duff's device routines
2024-10-12 16:06:54 -07:00
Cameron Cawley
90f792f83c
Reduce the size of the SDL_blit_0 alpha code
2024-10-12 16:06:54 -07:00
Cameron Cawley
e2f27362cb
testdrawchessboard: Allow using the standard render API
2024-10-12 13:56:51 -07:00
Sam Lantinga
da4608ed03
Fixed typo in SDL_audio.h
2024-10-10 08:49:41 -07:00
Guldoman
5fe010270a
x11: Set correct clipboard target type in SelectionRequest handling
2024-10-09 07:31:43 -07:00
Sam Clegg
3deb07ea39
[emscripten] Fixes for data addresses above 2gb
...
This includes both wasm64 and wasm32 when addressing more than 2gb of
memory.
Fixes : #9052
2024-10-08 16:35:58 -04:00
Sam Lantinga
da19244f7f
Added support for wired XBox controllers on macOS 15.0 Sequoia
...
Fixes https://github.com/libsdl-org/SDL/issues/11002
(cherry picked from commit 7da728a642 )
2024-10-07 16:41:34 -07:00
Sam Lantinga
bb33eb409e
Fixed detecting the Steam Virtual Gamepad on macOS
2024-10-07 16:21:44 -07:00
Frank Praznik
a86f8dedb9
wayland: Add support for setting window icons via the xdg-toplevel-icon-v1 protocol
2024-10-07 14:24:33 -04:00
Frank Praznik
ea77d1d385
wayland: Factor out the general SHM buffer allocation/free functions from the cursor code
2024-10-07 14:24:33 -04:00
Anonymous Maarten
e4126d8d6f
Add parametrized release script
...
[ci skip]
2024-10-04 23:42:29 +02:00
Ryan C. Gordon
2c60d95ee2
.wikiheaders-options: fix redundant language.
2024-10-04 15:41:54 -04:00
Ryan C. Gordon
ef05f66c08
.wikiheaders-options: Declare SDL3 the current stable API!
2024-10-04 15:39:12 -04:00