Ryan C. Gordon
b23343b7cd
configure.ac: Explicitly disable Vulkan support on Solaris.
...
Fixes #10100 .
2024-06-27 01:39:44 -04:00
Sam Lantinga
ee3b2b7de1
Make sure we don't try to use the XInput DLL after it's unloaded
...
Steam ran into a crash SDL_XINPUT_JoystickDetect() with XINPUTGETCAPABILITIES being NULL. I'm not sure how that happened, and there may still be a race condition if this is a multi-threaded issue, but at least this is more correct.
(cherry picked from commit 0ae4fd0ec9
)
2024-06-26 15:55:31 -07:00
Sam Lantinga
88bbab275f
Fixed building with older libdrm headers
...
(cherry picked from commit 8949de3978
)
2024-06-26 15:55:08 -07:00
Sam Lantinga
ecde0ca6b6
Fixed building with the steamrt/scout SDK
...
(cherry picked from commit 4b82bed259
)
2024-06-26 15:54:53 -07:00
Sam Lantinga
64d4baccb5
Fix building with the steamrt/scout SDK
...
(cherry picked from commit b552f26e6a
)
2024-06-26 15:54:20 -07:00
Francisco Javier Trujillo Mata
10c14e78b6
Fixing systimer
2024-06-26 15:28:16 -07:00
Francisco Javier Trujillo Mata
4d82ceae0c
Add slash to cwd call
2024-06-26 14:55:30 -07:00
Frank Praznik
20f1061cc8
video: Fix memory leak when deleting a video display
...
The display deletion code would not free the driver data or name if the display index was the last, or only one, in the list.
2024-06-26 12:19:14 -04:00
Frank Praznik
3b88d4f46f
wayland: Fix double free when deleting an output display
2024-06-26 12:19:14 -04:00
Cecill Etheredge
6589287ed6
fix: Use drmModeAddFB2WithModifiers instead of drmModeAddFB to allow using GBM modifiers.
...
This fixes corrupt framebuffers on platforms that require the use of modifiers.
(cherry picked from commit 620e875335
)
2024-06-25 14:21:17 -07:00
Anonymous Maarten
8ae7841d91
Revert "Make sdl2-config interpreter configurable"
...
This reverts commit b9f005505b
.
Making the interpreter configurable is a band-aid fix.
So revert the workaround until we know the actual cause.
2024-06-25 00:44:55 +02:00
Edoardo Lolletti
99d7b9e626
Fix std::thread memory leak
...
In the stdcpp thread implementation, the allocated std::thread objects were never deleted after joining/detaching
(cherry picked from commit 20dbe90771
)
2024-06-24 11:51:21 -07:00
Anonymous Maarten
b9f005505b
Make sdl2-config interpreter configurable
2024-06-23 23:30:50 +02:00
Ganael Laplanche
ab5740bde2
Fix joystick (/dev/input/xxx) support on FreeBSD
...
Backport f8ad4abe
from main branch.
When switching to CMake, src/joystick/linux/SDL_sysjoystick.c file got
excluded from FreeBSD builds, losing support for /dev/input/xxx devices.
See also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279907
and: https://github.com/libsdl-org/SDL/pull/10087
2024-06-23 00:06:55 -07:00
Blaž Tomažič
6a2dd96ac7
android: actually use ReLinker
...
When loading libraries the `SDL.mContext` is still `null`. This results in
relinker code path in `SDL.loadLibrary(...)` always throwing a null exception
and fallbacking to system loader.
Fix it by passing the context explicitly.
2024-06-20 09:35:28 -07:00
Blaž Tomažič
b444e656cd
android: add an option to manually pass the context when loading a native library
2024-06-20 09:35:28 -07:00
SDL Wiki Bot
c1d10c36e7
Sync SDL2 wiki -> header
2024-06-20 16:30:15 +00:00
expikr
194d72bb29
Add SDL_MOUSE_RELATIVE_CURSOR_VISIBLE ( #7947 )
...
(cherry picked from commit ee559d51be
)
2024-06-20 09:28:58 -07:00
Aikawa Yataro
4800edfa0c
Update qsort implementation
...
(cherry picked from commit 0fe9f5da54
)
2024-06-19 05:47:55 +03:00
Sam Lantinga
5a26b26880
Fixed requesting USB permission on Android 14 (thanks @ikhoeyZX!)
...
Fixes https://github.com/libsdl-org/SDL/issues/9831
(cherry picked from commit 8ab1ffca8a
)
2024-06-17 15:11:48 -07:00
Sam Lantinga
a6fdd155fb
Pass through the original name used by the Steam Virtual Gamepad
...
Proton uses this on Linux to determine what the XInput slot is for the gamepad. Other applications will get the real controller name and VID/PID by virtue of the code in SDL_steam_virtual_gamepad.c
(cherry picked from commit 361cae0874
)
2024-06-17 12:14:59 -07:00
Miku AuahDark
77285b6c3f
Android: Use SCREEN_ORIENTATION_FULL_USER instead of SCREEN_ORIENTATION_FULL_SENSOR for resizable window.
...
The former will respect user orientation lock setting while the latter does not.
(cherry picked from commit 3373667faa
)
2024-06-17 09:55:03 -07:00
SDL Wiki Bot
744eb00b04
Sync SDL2 wiki -> header
2024-06-16 15:02:26 +00:00
rfht
177dfddaf7
simplify OpenBSD D-pad calculation with bitwise operation ( #7996 )
...
(cherry picked from commit 4d63c919f9
)
2024-06-16 05:56:35 -07:00
Ryan C. Gordon
510f413bb8
coreaudio: simplify memory leak fix.
...
I _did_ appreciate the explanation, but it doesn't have to live in the
source code; also we can just release `devuid` and then check for error with
the usual macro, since SDL is done with it either way at this point.
(cherry picked from commit 17af09f3a9
)
2024-06-15 11:47:27 -04:00
obeecodes
a9da8dd22d
Addressed memory leak in SDL_coreaudio.m
...
(cherry picked from commit 3b5dce10c4
)
2024-06-15 08:09:14 -07:00
Ozkan Sezer
a4d240d295
SDL_events.c: remove long long casts an the override of SDL_PRIs64
2024-06-14 18:47:56 +03:00
Ozkan Sezer
9422c57201
revert commit ac25395
as it broke linux..
2024-06-14 14:56:32 +03:00
Ozkan Sezer
ac253956b9
SDL_events.c: override of SDL_PRIs64 for mingw is no longer needed
...
(cherry picked from commit 65d911aff0
)
2024-06-14 14:51:10 +03:00
Ozkan Sezer
948b926d47
SDL_qsort.c: better match private funcs' compare args to SDL3 version.
2024-06-14 14:50:32 +03:00
SDL Wiki Bot
143d5d779c
Sync SDL2 wiki -> header
2024-06-14 06:11:54 +00:00
Sam Lantinga
169f77ed5e
Re-enable full controller reports for Joy-Con controllers
...
When they are in simple report mode, the thumbstick gets turned into a digital hat, so let's use them in full report mode.
(cherry picked from commit bf27269952
)
2024-06-13 00:02:00 -07:00
Sam Lantinga
6b9bf71133
Try to guess the type of a Nintendo Switch controller if we can't read the device info
...
(cherry picked from commit 6619de8f24
)
2024-06-13 00:01:40 -07:00
Sam Lantinga
f1b19aa744
Ignore spurious reply packets when reading Nintendo Switch controller reports
...
(cherry picked from commit 5ee9a840b1
)
2024-06-12 23:59:07 -07:00
Ozkan Sezer
ce6d3c5cc1
SDL_qsort.c: change private function compare args to SDL_CompareCallback
...
fixes watcom os/2 and win32 builds after commit b2b2369414
2024-06-13 04:50:56 +03:00
Ryan C. Gordon
b2b2369414
Moved function pointer params to typedefs, etc, for latest wikiheaders.
2024-06-12 19:29:21 -04:00
Sam Lantinga
477c718744
Added wiki-style documentation for SDL_JoystickGUID
2024-06-08 08:50:24 -07:00
Hanicef
1c3090a1ac
Fix broken dead key behavior on Wayland
...
This fixes numerous problems regarding dead keys on Wayland. Most
notably, Wayland was enforcing dead keys on SDL_KEYDOWN and SDL_KEYUP
events, which caused unresponsiveness on keys that were mapped to dead
keys (tilde on US-Intl is most notable for this, commonly used as a
console key).
When starting text input, not all state was reset properly. The text
input protocol requires to be re-enabled every time text input changes,
which SDL did not do. Also, XKB compose state was not reset at all,
causing composite and dead keys to carry over from when text input was
disabled.
2024-06-08 11:43:20 -04:00
Sam Lantinga
7fce9f3fd0
Minor cleanup for SDL style
2024-06-07 09:26:55 -07:00
Sam Lantinga
2e8bd8f1f3
Fixed build
2024-06-07 09:05:10 -07:00
Fabrice Desclaux
22c14442e2
Fix spurious LCtrl on RAlt key pressed
2024-06-07 08:45:47 -07:00
Oleg
0f9191a643
Added VRS DirectForce Pro wheelbase VID/PID to wheel devices list
...
(cherry picked from commit 7529b4bed5
)
2024-06-06 09:54:40 -07:00
Frank Praznik
fc6bbde525
wayland: Set the initial min/max limits on non-libdecor windows during a show operation
...
Libdecor windows will have this done during the first frame configure, but bare xdg-toplevel windows need it set explicitly, or a non-resizable window might be able to be resized.
2024-06-06 09:50:38 -04:00
Sam Lantinga
f520062ad1
Fixed PlayStation detection interrupting input for the Logitech K400 keyboard
...
Also added the Logitech Chillstream to the list of PS3 controllers and fixed the right shoulder axis.
(cherry picked from commit b6d7adfec1
)
2024-06-05 19:29:48 -07:00
Sam Lantinga
e2f597de84
Added support for the Saitek Cyborg V.3 Rumble Pad in PS3 mode
...
(cherry picked from commit b6ca360228
)
2024-06-05 19:28:26 -07:00
Ozkan Sezer
70faef84aa
build-scripts/ltmain.sh: minor updates hand-picked from mainstream
2024-06-05 23:11:10 +03:00
Sam Lantinga
997ef88605
Sort joystick drivers in Android.mk
...
(cherry picked from commit 27728db41d
)
2024-06-05 12:09:45 -07:00
Sam Lantinga
f725ce492c
Build the dummy joystick driver on Android
...
Fixes https://github.com/libsdl-org/SDL/issues/9978
(cherry picked from commit 69bfa5c951
)
2024-06-05 12:09:39 -07:00
erysdren
e1bb00cdc9
Add a basic ShowMessageBox implementation for PSP ( #9932 )
2024-06-05 17:36:18 +02:00
erysdren
6da5242535
SDL_render_psp.c: Fix crash in PSP_DestroyRenderer()
2024-06-04 15:06:44 -07:00