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
Ryan C. Gordon
de1b52f161
cmake: Adjust Enabled Backends list for render drivers to catch opengles2.
...
This happens to work here because we don't have anything too complex, afaik.
Rejecting strings with underscores was crucial for other things, like video
with all its X11 variables, so this can't be applied to the other subsystems.
(Also, renaming the `SDL_VIDEO_RENDER_OGL_ES2` variable might be nice, too,
but let's keep this simple for now.)
Fixes #13938 .
2025-09-13 11:28:57 -04:00
Ryan C. Gordon
2ede37f5a3
cmake: Removed unused SDL_GPU_DXVK bits.
...
Reference Issue #13938 .
2025-09-13 11:24:55 -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
SDL Wiki Bot
2ea1ea1011
Sync SDL3 wiki -> header
...
[ci skip]
2025-09-13 00:23:10 +00:00
Ryan C. Gordon
411e47ba00
docs: Remove a redundant comment.
...
(The wiki will link to this symbol, we don't have to explicitly mention it.)
2025-09-12 20:11:44 -04:00
Evan Hemsley
fe314a1b8a
GPU: Bump MAX_COLOR_TARGET_BINDINGS to 8 ( #13937 )
2025-09-12 13:04:18 -07:00
Ryan C. Gordon
1c784c453d
cmake: Report enabled subsystem backends in a compact form. ( #13926 )
...
Looks like this:
```
-- Enabled backends:
-- Video drivers: dummy kmsdrm(dynamic) offscreen wayland(dynamic) x11(dynamic)
-- X11 libraries: xcursor xdbe xfixes xinput2 xrandr xscrnsaver xshape xsync xtest
-- Render drivers: gpu ogl vulkan
-- GPU drivers: vulkan
-- Audio drivers: alsa(dynamic) disk dummy jack(dynamic) pipewire(dynamic) pulseaudio(dynamic) sndio(dynamic)
-- Joystick drivers: hidapi linux virtual
```
Fixes #7922 .
Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com >
2025-09-12 14:59:43 -04:00
Ryan C. Gordon
c78818bd4b
examples: When linking to directories, append a '/' to the URL.
...
This works without it, but generates an extra redirect on the web server to
the same a URL with the '/' appended, so we might as well supply it ourselves
and remove the extra roundtrip to the server.
2025-09-12 14:23:01 -04:00
Ryan C. Gordon
614ae1b115
emscripten: Support analog gamepad triggers on both Firefox and Chrome.
...
Fixes #13051 .
2025-09-12 14:23:01 -04:00
Sam Lantinga
3c627390bb
Updated deployment target to VisionOS 1.3
2025-09-12 10:28:44 -07:00
Anonymous Maarten
e022c60d3a
android: Remove SDL3-static from Android.mk
2025-09-12 17:37:31 +02:00
Sam Lantinga
e7784b7bf7
Set GPU properties for maximum hardware compatibility
...
Resolves https://github.com/libsdl-org/SDL/issues/13928
2025-09-11 21:30:58 -07:00
Sam Lantinga
00812d13b0
The names of keyboards and mice are valid after they've been removed
...
Fixes https://github.com/libsdl-org/SDL/issues/12816
2025-09-11 20:07:55 -07:00
Sam Lantinga
3ddc3f1146
Send events for mice and keyboards detected during initialization
...
Fixes https://github.com/libsdl-org/SDL/issues/12815
2025-09-11 20:07:55 -07:00
Ryan C. Gordon
8d5b82be2e
io: POSIX implementation tries to get status information on short reads/writes.
...
Fixes #13413 .
2025-09-11 10:11:51 -04:00
Ryan C. Gordon
4d6e0e0087
io: read_fd should only report EOF on a zero-byte return value.
...
POSIX says that's the EOF indicator, not a non-zero a short read.
2025-09-11 10:11:50 -04:00
Temdog007
4efdfd92a2
Emscripten: Ensure drop functionality is the same as other platforms
2025-09-10 15:22:04 -07:00
Temdog007
6711caa431
Emscripten: Fix Emscripten_GetFocusedWindow
...
Ensure a window is focused if the DOM is focused
2025-09-10 14:53:28 -07:00
Sam Lantinga
712ce16469
Fixed emulated touch on Android
...
This also fixes laser pointer input on Meta Quest headsets
2025-09-10 14:44:26 -07:00
SDL Wiki Bot
e035f3a480
Sync SDL3 wiki -> header
...
[ci skip]
2025-09-10 19:09:24 +00:00
Sam Lantinga
035eed351c
Added SDL_GetPixelFormatFromGPUTextureFormat() and SDL_GetGPUTextureFormatFromPixelFormat()
...
Fixes https://github.com/libsdl-org/SDL/issues/13899
2025-09-10 12:08:04 -07:00
eafton
d3a6be9607
X11TK: Implement SHM transport for fractional scaling ( #13919 )
2025-09-10 08:05:23 -07:00
eafton
206a3cd25f
X11TK: Fix a bug where closing the messagebox would kill the application
2025-09-10 08:03:32 -07:00
Jaan Soulier
ed6a72a7fd
Fix reallocation of GPU renderer vertex buffer
2025-09-09 20:28:14 -07:00
SDL Wiki Bot
7840c9d879
Sync SDL3 wiki -> header
...
[ci skip]
2025-09-10 00:35:57 +00:00
Sam Lantinga
b7dba970e1
Fixed setting SDL_PROP_TEXTURE_VULKAN_TEXTURE_NUMBER
2025-09-09 17:34:34 -07:00
Sam Lantinga
a4b180f515
Added SDL_PROP_TEXTURE_GPU_TEXTURE_POINTER
2025-09-09 17:34:34 -07:00
Ethan Lee
c5749f0ae7
video: Xbox buildfix for DeclareDPIAwareSystem
2025-09-09 16:35:18 -04:00
eafton
b59d6d49c3
X11: Check for invalid opcodes in SHM error handler
2025-09-09 10:59:24 -07:00
Ryan C. Gordon
387a2b924d
Revert "Sync SDL3 wiki -> header"
...
This reverts commit 15e60cd37f
.
We don't need to link to SDL_ttf here, it makes the headers look ugly.
2025-09-09 10:37:36 -04:00
Sam Lantinga
0f8d062e10
Fixed warning: conversion to 'uint32_t' from 'float' may alter its value
2025-09-08 19:25:41 -07:00
Ozkan Sezer
5907bf2555
cmake: remove GetDpiForMonitor() assignment from shellscalingapi.h check
...
It always fails, because we don't set the needed link library, i.e. shcore.
Besides, SDL3.dll doesn't link to shcore.dll, it links to it at runtime, so
it is unnecessary to check for that symbol here.
Reference issue: https://github.com/libsdl-org/SDL/pull/13904
2025-09-09 04:55:32 +03:00
Ozkan Sezer
b2c6dfa4c5
dialog, windows: tweak includes and include order,
...
so that the set _WIN32_WINNT value is visible to the source.
Reference issue: https://github.com/libsdl-org/SDL/pull/13904
2025-09-09 04:55:24 +03:00
Sam Lantinga
df0cc6e98b
Make sure we always zero the buffer sent to Steam Controllers
...
This fixes bad initialization for Steam Controllers with the original firmware
2025-09-08 18:41:17 -07:00
Ryan C. Gordon
11411bb5ef
renderer: Don't use wrapping on NPOT textures if the renderer can't handle it.
...
Fixes #13887 .
2025-09-08 17:09:41 -04:00
nightmareci
2f5bc17ea6
Fix support for Windows XP and up ( #13904 )
2025-09-08 13:00:26 -07:00
Sam Lantinga
3f196c0abe
Added a name for the Windows raw input thread
2025-09-08 11:39:17 -07:00
SDL Wiki Bot
2746e988b3
Sync SDL3 wiki -> header
...
[ci skip]
2025-09-08 18:20:40 +00:00
Ethan Lee
5591d4b1a8
gpu: Note hardware supported by Tier 1 Resource Binding
2025-09-08 11:19:20 -07:00
Ethan Lee
cbe4970946
gpu: Add D3D12_ALLOW_FEWER_RESOURCE_SLOTS_BOOLEAN property
2025-09-08 11:19:20 -07:00
Luis Caceres
03d0c2ad74
gpu/vulkan: Move dereference after null check
2025-09-08 12:19:53 -04:00