g9wp
aef05d8750
tray(Win32): re-add the tray icon upon taskbar restart ( #13261 )
2025-09-22 06:47:25 -07:00
zuiki_inn
fc648e5546
Support ZUIKI MasconPro ( #13770 )
...
* Add ZUIKI controller
Support version:
MasconPro
Enable rumble
Disable sensors
2025-09-21 23:38:28 -07:00
Sam Lantinga
26dd4e3abb
Fixed filesystem operations on Android
...
Full paths are used as-is, relative paths are prepended with SDL_GetAndroidInternalStoragePath(), and operations fall back to the asset system as appropriate.
This is consistent with the behavior of opening files on Android.
2025-09-21 18:23:34 -07:00
Sam Lantinga
bae34c3e34
Fixed SDL_RunOnMainThread() on Android
...
If the application is waiting in SDL_WaitEvent(), we still need to run event loop maintenance in between calls to Android_PumpEvents().
Fixes the testautomation events_mainThreadCallbacks() test on Android.
2025-09-21 13:46:11 -07:00
Fierelier
3fd0b46215
[SDL3] [PS2] Framebuffer resolution + 240p/480p + PAL support ( #13993 )
...
* Do not override NTSC/PAL
* Fix PS2 build instructions
* Add PS2 GS hints
Allows for switching between NTSC/PAL, progressive/interlaced, etc
2025-09-21 07:50:14 -07:00
Sam Lantinga
bce2a336d2
Use the default window focus behavior on macOS
...
We had to work around odd behavior in really old versions of macOS, but the current behavior is great.
Fixes https://github.com/libsdl-org/SDL/issues/3954
2025-09-20 18:57:22 -07:00
Sam Lantinga
6a9ac1cacd
Always poll udev on supported platforms
...
Fixes https://github.com/libsdl-org/SDL/issues/13995
2025-09-20 11:13:39 -07:00
Sam Lantinga
8eeae5f686
The wayland messagebox should only be used under wayland
2025-09-20 09:06:07 -07:00
Sam Lantinga
5503fe1c1b
Fixed a memory leak in fill_device_info_usage() (thanks @digant73)
...
Fixes https://github.com/libsdl-org/SDL/issues/13998
2025-09-20 09:05:37 -07:00
Andrei Sabalenka
bb2b39b8ea
wayland: fix typo in xdg_positioner_set_anchor_rect
2025-09-20 08:53:49 -07:00
Sam Lantinga
597ef58966
Use zenity messageboxes by default on X11
...
This makes messageboxes consistent between X11 and Wayland.
2025-09-20 08:37:51 -07:00
Ozkan Sezer
9cefbab766
remove watcom compiler support from private sources
2025-09-20 03:47:02 +03:00
Frank Praznik
9b72545634
video: Clamp HDR levels before comparing for deduplication
...
Eliminates some redundant HDR changed events due to comparing clamped and unclamped values.
2025-09-19 12:36:59 -04:00
Sam Lantinga
9e0549d8ff
Use posix_spawn_file_actions_addchdir_np() on macOS
...
posix_spawn_file_actions_addchdir() was introduced in macOS 26, but we want to be able to run on systems all the way back to macOS 15
2025-09-19 08:00:03 -07:00
Sam Lantinga
f8a1ea021b
Fixed crashes when SDL_DISABLE_INVALID_PARAMS is enabled (thanks @AntTheAlchemist!)
2025-09-19 07:43:01 -07:00
Sam Lantinga
0eff3fe558
Fixed double-free when using window surfaces
2025-09-18 20:58:32 -07:00
Sam Lantinga
c25a0b046a
Make SDL_ObjectValid() inline for performance (thanks @mechakotik!)
2025-09-18 20:58:32 -07:00
Sam Lantinga
25b2d2c821
Use new parameter validation macro
2025-09-18 20:58:32 -07:00
Sam Lantinga
ee1c90a358
Improved handling of function parameter validation
...
SDL supports the following use cases:
* Normal operation with fast parameter checks (default):
SDL_SetHint(SDL_HINT_INVALID_PARAM_CHECKS, "1");
* Object parameters are checked for use-after-free issues:
SDL_SetHint(SDL_HINT_INVALID_PARAM_CHECKS, "2");
* Enable full validation, plus assert on invalid parameters:
#define SDL_ASSERT_INVALID_PARAMS
* Disable all parameter validation:
#define SDL_DISABLE_INVALID_PARAMS
2025-09-18 20:58:32 -07:00
Frank Praznik
f540de87b9
wayland: Always set the last incoming clipboard seat when setting clipboard data
...
Otherwise, the clipboard will report having no or old data until events are pumped.
Fixes the automated clipboard tests.
2025-09-18 17:44:58 -04:00
Ethan Lee
4ee79e6493
filesystem: GetCurrentDirectory now falls back to GetBasePath when unsupported
2025-09-18 14:49:03 -04:00
Anonymous Maarten
5dfa2cb88a
Use SDL_abort when encountering a internal fatal SDL_assertion error
2025-09-17 22:54:23 +02:00
Anonymous Maarten
a7739ceccb
Add SDL_internal macro for internal use
2025-09-17 22:54:23 +02:00
Kyle Sylvestre
3876ce3495
fix windows EOF check
2025-09-16 17:13:22 -07:00
Ryan C. Gordon
3ee29f2e7a
render: Don't default to vsync=0 on Emscripten.
...
Fixes #12805 .
2025-09-16 12:30:22 -04:00
ManifoldFR
8bc4e029bd
gpu/vulkan : fix clear value indexing
2025-09-16 08:45:35 -07:00
Frank Praznik
03e1523eb8
wayland: Add the libdecor toplevel bounds and constraints properties
2025-09-16 11:07:27 -04:00
Sora
964bedfdd9
fix: use productCategory instead of vendorName for joy name for apple driver
2025-09-15 11:51:06 -07:00
Andrei Alexeyev
287e786120
render/gpu: fix copypaste error in render initialization
2025-09-15 10:29:04 -07:00
Frank Praznik
cf646af707
Clean up old-style null check
2025-09-15 10:59:36 -04:00
Eddy Jansson
21c9f5304d
wayland: Silence unused variable warning
...
'vd' and 'd' are only used if SDL_USE_LIBDBUS is set.
2025-09-15 10:26:23 -04:00
Sam Lantinga
dac6af4ba6
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
2025-09-14 17:24:40 -07:00
Sam Lantinga
30e2fdc5a2
Sort the blacklist entry for the HP Deluxe Webcam KQ246AA
2025-09-14 15:38:47 -07:00
Nintorch
556ee00fe3
Fix HP Deluxe Webcam KQ246AA detected as joystick
2025-09-14 15:27:03 -07:00
Sam Lantinga
f8bace9b9b
Remove the behavior of warping the mouse on fullscreen transitions
...
This made sense when switching between a window and an exclusive fullscreen video mode of the same dimensions, but it causes user confusion when the window changes size, and doesn't work well with Wayland. I've gotten this feedback from several sources, so we'll just go ahead and remove this behavior for now.
Fixes https://github.com/libsdl-org/SDL/issues/11577
2025-09-14 13:18:30 -07:00
Sam Lantinga
a1d3fc1f50
Clarify why we ignore EINVAL when flushing a file descriptor
2025-09-14 12:11:05 -07:00
Sam Lantinga
e40d337a47
Ignore errors flushing output on POSIX pipes
...
Fixes https://github.com/libsdl-org/SDL/issues/13116
Fixes https://github.com/libsdl-org/SDL/issues/13412
2025-09-14 12:09:16 -07:00
Sam Lantinga
0f2cb0a3f8
Fixed to match window event order
2025-09-14 11:38:09 -07:00
Sam Lantinga
1aba421bd3
Wait briefly after enabling effects on DualSense controller
...
The rumble motors apparently take a short time to power up after enabling enhanced mode.
Fixes https://github.com/libsdl-org/SDL/issues/13909
2025-09-14 09:59:01 -07:00
Sam Lantinga
f2bdf2a8cc
Removed unnecessary Windows version check
2025-09-14 09:01:42 -07:00
Sam Lantinga
78a29d1670
Disable Windows.Gaming.Input by default
...
The functionality is already covered by XInput and DirectInput, and Microsoft is recommending GameInput going forward.
Fixes https://github.com/libsdl-org/SDL/issues/13000
2025-09-14 08:47:52 -07:00
Sam Lantinga
ede86a1267
Fixed memory leak when using detached threads
...
Fixes https://github.com/libsdl-org/SDL/issues/13886
2025-09-14 08:42:25 -07:00
Sam Lantinga
113c7e8a58
Fixed delayed text entry for OTP codes on iOS (thanks @pipiwoaini!)
...
Fixes https://github.com/libsdl-org/SDL/issues/13717
2025-09-14 08:08:13 -07:00
Frank Praznik
4561be89a5
x11: Use the SDL_WindowFlags type instead of Uint32
...
Uint32 can potentially truncate the flag value, as it is 64 bits in SDL3.
2025-09-13 15:44:29 -04:00
Cameron Cawley
bd680bdbcc
Consistently use SDL_PIXELFORMAT_RGBA32 with Emscripten
2025-09-13 07:41:33 -07:00
Sam Lantinga
c78e279d3c
Removed unneeded preprocessor guards
2025-09-13 07:22:30 -07:00
mitchellcairns
78e0ec7e0d
SInput: Version as a capabilities vehicle ( #13667 )
...
* SInput: version capabilities compression
This commit includes additions relating to SInput generic device reporting capabilities in a bit more detail, to automatically choose the best input map possible for the given device.
Thanks to Antheas Kapenekakis (git@antheas.dev ) for contributing the neat compression algorithm, this is pulled from the PR Draft here: https://github.com/libsdl-org/SDL/pull/13565
Co-authored-by: Antheas Kapenekakis <git@antheas.dev >
2025-09-13 07:21:39 -07:00
1vanK
2d1870d8b3
Used SDL_APP_CONTINUE instead 0
2025-09-13 07:13:00 -07:00
cosmonaut
9603360b7e
GPU: Allow rendering into depth texture layers and levels
2025-09-13 07:11:43 -07:00
Ryan C. Gordon
98e22213da
emscripten: Do a little better at tracking Caps/Num/Scroll Lock state.
...
Fixes #5447 .
2025-09-13 01:50:22 -04:00