Commit Graph

4587 Commits

Author SHA1 Message Date
SDL Wiki Bot
233cc9ce6a Sync SDL3 wiki -> header
[ci skip]
2026-08-20 15:05:54 +00:00
Ryan C. Gordon
e4c41d393b events: Note that SDL_PenProximityEvent::pen_state was added for 3.4.16. 2026-08-18 21:01:53 -04:00
Ryan C. Gordon
3bdb7d00d5 pen: Report SDL_PenInputFlags in SDL_PenProximityEvent.
Fixes #16125.
2026-08-18 16:07:51 -04:00
Ryan C. Gordon
0fb1177405 Manually sync wiki -> headers.
Trying to coerce SDLWikiBot to stop eating changes.
2026-08-11 09:41:55 -04:00
SDL Wiki Bot
d5424685a9 Sync SDL3 wiki -> header
[ci skip]
2026-08-11 13:15:49 +00:00
SDL Wiki Bot
767459e4cd Sync SDL3 wiki -> header
[ci skip]
2026-08-11 05:04:02 +00:00
SDL Wiki Bot
56ef0efc20 Sync SDL3 wiki -> header
[ci skip]
2026-08-06 17:37:45 +00:00
Sam Lantinga
ad30741a5b Additional clarification on blend mode usage 2026-08-06 10:36:21 -07:00
Sam Lantinga
81afb82f2d Clarify how the draw blend mode is used in the 2D renderer
Fixes https://github.com/libsdl-org/SDL/issues/16109
2026-08-06 08:47:50 -07:00
Ozkan Sezer
f661f37ace update khronos headers from mainstream. 2026-08-04 03:28:10 +03:00
SDL Wiki Bot
494cb8447d Sync SDL3 wiki -> header
[ci skip]
2026-08-03 20:19:06 +00:00
Evan Hemsley
5538d52430 GPU: Allow combinations of read flags on buffers (#16111) 2026-08-03 13:16:20 -07:00
SDL Wiki Bot
fdc1143337 Sync SDL3 wiki -> header
[ci skip]
2026-08-03 06:23:36 +00:00
Sanjay Govind
7010faef34 Add support for GIP instruments via hidapi, and drums via gameinput (#16009) 2026-08-02 16:27:46 -07:00
SDL Wiki Bot
7add7ece3c Sync SDL3 wiki -> header
[ci skip]
2026-07-31 15:51:46 +00:00
eafton
7b7a74ebc7 Fix some DBus tray issues 2026-07-31 08:49:03 -07:00
SDL Wiki Bot
09552d5bee Sync SDL3 wiki -> header
[ci skip]
2026-07-31 02:31:40 +00:00
Sam Lantinga
fe85b4782d Support extended interop with the 2D Metal renderer
Also fixed an issue where an external surface couldn't be used with IYUV and YV12 textures.
2026-07-30 19:28:50 -07:00
Anonymous Maarten
b048e8e6f8 windows: vendor GameInput headers 2026-07-30 20:19:17 +02:00
Lucas Alves
3304ec648b Add "_FIRST/_LAST" fields to events subsections. 2026-07-25 12:01:55 -07:00
Sam Lantinga
23b641070c Added HDR10 display support for the direct3d11, direct3d12, and vulkan renderers 2026-07-22 11:36:32 -07:00
Esme Povirk
3fc8509b36 Fix build on arm64ec. 2026-07-21 07:44:17 -07:00
SDL Wiki Bot
377150b59e Sync SDL3 wiki -> header
[ci skip]
2026-07-19 16:47:13 +00:00
Ryan C. Gordon
daf519ae05 assert: make disabled asserts work with bitfield conditions.
We don't care _what_ the `sizeof` results are, we just want it to vaporize
the condition's code out of the build. So we check it with a `? 1 : 0`, so it
always boils down to a `sizeof (int)`, no matter what data type the condition
actually is.

This works with bitfields, pointers, anything that can be "truthy." If it
isn't truthy, it would fail when assertions are enabled anyhow.

Fixes #15990.
2026-07-13 18:17:33 -04:00
Ozkan Sezer
a6c294410e introduce new printf format macros SDL_PRISZu, SDL_PRISZx and SDL_PRISZX 2026-07-13 22:35:03 +03:00
Ryan C. Gordon
82141a2439 api: Added SDL_GetNumProperties().
Fixes #14761.
2026-07-11 15:11:30 -04:00
SDL Wiki Bot
50852f7f1b Sync SDL3 wiki -> header
[ci skip]
2026-07-08 23:11:32 +00:00
Sam Lantinga
782d6bc116 Note that Windows doesn't see mouse button releases when RIDEV_NOLEGACY is active. 2026-07-08 16:08:38 -07:00
SDL Wiki Bot
eb88a154fa Sync SDL3 wiki -> header
[ci skip]
2026-07-06 20:30:33 +00:00
Sam Lantinga
d8d5b7c6c5 Added a slider to manually adjust HDR headroom on visionOS
Ideally the OS would provide a way to query the current headroom, but for now users can manually adjust it.
2026-07-06 13:25:12 -07:00
brentfpage
46dcc0c554 for 'pinch end' events on mobile devices, send dummy value -1 for (focus|span)_(x|y) 2026-07-06 05:52:47 -07:00
Ozkan Sezer
a6d7872d2f SDL_notification.h: fix for C89 mode. 2026-07-04 00:47:56 +03:00
Ozkan Sezer
aad60dec77 SDL_intrin.h: fix error from old gcc. 2026-07-04 00:47:55 +03:00
SDL Wiki Bot
ceb4a7f1cb Sync SDL3 wiki -> header
[ci skip]
2026-07-01 22:03:03 +00:00
Ryan C. Gordon
eb04627741 stdinc: SDL_SetMemoryFunctions now handles NULL function pointers better.
Now it does _not_ call SDL_SetError(), since that would allocate memory with
the system in a weird state, and setting all four functions to NULL will
restore the original memory functions, as a shortcut vs having to query
SDL_GetOriginalMemoryFunctions() first.

Fixes #15914.
2026-07-01 18:00:09 -04:00
SDL Wiki Bot
4fe0d8c1cd Sync SDL3 wiki -> header
[ci skip]
2026-06-30 16:33:03 +00:00
Frank Praznik
d8971fa00a wayland: Add support for the session management protocol
Add session management protocol support for saving/restoring toplevel window state across runs.
2026-06-30 12:30:08 -04:00
SDL Wiki Bot
9da5a636ad Sync SDL3 wiki -> header
[ci skip]
2026-06-29 17:51:17 +00:00
Andrei Sabalenka
7ee8160922 gpu: make NULL object releases no-ops
These functions already return immediately for NULL objects in normal builds, but it was done through CHECK_PARAM. When building with SDL_DISABLE_INVALID_PARAMS, these checks were compiled out, and NULL resources could reach backend release functions and cause segfault.

Always return on NULL so API behaves consistently regardless of SDL_DISABLE_INVALID_PARAMS.
2026-06-29 10:47:52 -07:00
Ozkan Sezer
4bebbec9d4 update khronos headers from mainstream. 2026-06-26 21:32:02 +03:00
Holden Ramsey
7a6eed4ec8 Android: decouple video/audio subsystems from JNI initialization
Allow Android embedders to use SDL without the full video/audio Java
layer by gating subsystem-specific code behind SDL_VIDEO_DISABLED and
SDL_AUDIO_DISABLED preprocessor flags.

This enables applications that only need joystick/gamepad support
(e.g. Qt-based apps like QGroundControl) to build SDL without shipping
stub Java classes for unused subsystems.

Changes:
- Split SDLActivity JNI method table into core (lifecycle, hints,
  permissions) and video (surface, input, clipboard, orientation)
- Gate SDLAudioManager and SDLInputConnection JNI registration
- Make checkJNIReady() subsystem-aware: no longer requires
  mAudioManagerClass when SDL_AUDIO_DISABLED
- Group method ID resolution by subsystem in nativeSetupJNI()
- Guard all video/audio function implementations and declarations
- Keep display orientation accessors always available (needed by camera)
- Add subsystem-selective SDL.setupJNI(int)/initialize(int) to SDL.java
  with backwards-compatible zero-arg overloads
- Guard SDL_VIDEO_DRIVER_ANDROID and related defines in
  SDL_build_config_android.h
2026-06-26 10:59:54 -07:00
Frank Praznik
8554d1c23c time: Convert the PS2 time implementation to a dummy implementation
SDL has no dummy fallback for the RTC functions, and the PS2 implementation is just an empty dummy implementation, so rename it and build it if no system-specific time functionality is found.
2026-06-25 11:32:48 -04:00
SDL Wiki Bot
0fa422231d Sync SDL3 wiki -> header
[ci skip]
2026-06-24 19:48:34 +00:00
Sam Lantinga
089b862732 Added SDL_HINT_WINDOWS_RAW_MOUSE_NOLEGACY 2026-06-24 12:45:36 -07:00
Ryan C. Gordon
179e66f1fe docs: Improved SDL_CommonEvent documentation. 2026-06-24 13:15:53 -04:00
SDL Wiki Bot
135a9457f3 Sync SDL3 wiki -> header
[ci skip]
2026-06-23 18:34:01 +00:00
Frank Praznik
5471f4c3de notification: Fix old function names in documentation 2026-06-23 14:31:01 -04:00
Ryan C. Gordon
0b692f64b0 docs: warn not to destroy an SDL_AudioStream during its callback.
Fixes #15871.
2026-06-23 13:49:46 -04:00
SDL Wiki Bot
e300b87e35 Sync SDL3 wiki -> header
[ci skip]
2026-06-23 07:25:14 +00:00
SDL Wiki Bot
1a21db244c Sync SDL3 wiki -> header
[ci skip]
2026-06-23 02:18:50 +00:00