Cameron Gutman
f0bda7b655
android: Fix scancode for AKEYCODE_CHANNEL_DOWN
2026-02-17 00:18:48 -06:00
Zack Middleton
54de246b4b
win32: Set error for SDL_GL_GetSwapInterval()
2026-02-16 22:03:20 -05:00
Sam Lantinga
089f5e1318
Treat the D-pad center button as SDL_SCANCODE_RETURN
...
This fixes handling of the Android TV remote select button sent over CEC.
2026-02-16 12:34:54 -08:00
Sam Lantinga
bc623d1af6
Moved mouse/keyboard detection to a separate thread on Windows
...
Getting device names can hang for a long time on certain devices, so make sure this is done on a separate thread to avoid blocking initialization and the main loop.
Fixes https://github.com/libsdl-org/SDL/issues/12913
2026-02-16 11:23:14 -08:00
Sam Lantinga
a98e49409e
Don't re-query HID device vendor and product
2026-02-16 11:23:14 -08:00
Cameron Gutman
8535936401
win32: Fix composition UI being displayed when IME is disabled
2026-02-16 09:00:33 -08:00
DominusExult
016a1b87a6
Hide deprecation warnings on statusBarOrientation, statusBarHidden, statusBarStyle
2026-02-15 10:57:07 -08:00
Ryan C. Gordon
10b524c7cc
hints: Rename SDL_HINT_OPENGL_FORCE_SRGB_CAPABLE.
...
It's now SDL_HINT_OPENGL_FORCE_SRGB_FRAMEBUFFER, since it does more than mess
with the srgb-capable context attribute now.
Reference Issue #14898 .
2026-02-14 16:33:21 -05:00
Ryan C. Gordon
ead67481c0
video: Only set GL_FRAMEBUFFER_SRGB state if the hint requests it.
...
Reference Issue #14898 .
2026-02-14 16:33:21 -05:00
Ryan C. Gordon
267e681a0b
emscripten: drag-and-drop fixes.
...
FS.mkdir() will throw a javascript exception if the scratch directory already
exists, so catch/ignore that.
Wrap the rest of the scratch i/o in a try/catch block; the event will only
send if everything works out.
Wrap some calls from Javascript to the C runtime's free() in an
EMSCRIPTEN_KEEPALIVE function, so that the compiler doesn't optimize the
function out and crash at runtime.
Fixes #14999 .
2026-02-09 21:39:02 -05:00
Ryan C. Gordon
8da6604854
video: GL_FRAMEBUFFER_SRGB is not core in any version of OpenGL ES.
...
Reference Issue #14898 .
2026-02-09 15:47:43 -05:00
RaceTheMaSe
6f754e5c03
Fix warnings: extra semi - spurious ( #15014 )
2026-02-09 11:48:58 -08:00
RaceTheMaSe
f1a7a64eb4
Fix warnings: Extra semi - macro usage ( #15015 )
2026-02-08 16:58:53 -08:00
Cameron Gutman
1d83a35e48
cocoa: Fix 1px border in fullscreen on Tahoe
2026-02-08 11:01:23 -08:00
Frank Praznik
f07ba5b954
wayland: Check the mod state when sending repeated key text
...
The control and alt modifiers should suppress text events when repeating to match standard press behavior.
2026-02-07 14:27:04 -05:00
RaceTheMaSe
7c7ffb9115
tests: Fix unreachable code warnings ( #14993 )
2026-02-07 20:42:59 +03:00
RaceTheMaSe
4f183506f6
Fix warning: strict prototypes ( #14992 )
...
clang: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
2026-02-07 07:38:59 -08:00
Max Seidenstücker
8f8880a8eb
Merge all occurances of __func__ and __FUNCTION__ to SDL_FUNCTION
2026-02-07 07:34:11 -08:00
Max Seidenstücker
d870911202
CodeSpell
2026-02-07 18:14:00 +03:00
Max Seidenstücker
144ab4ba99
Void function return
...
Clang: void function should not return void expression [-Wpedantic]
2026-02-07 18:06:10 +03:00
Max Seidenstücker
0c7d4d5a89
Static at beginning
...
GCC: 'static' is not at beginning of declaration [-Wold-style-declaration]
2026-02-07 18:05:39 +03:00
Ryan C. Gordon
3dc48a4890
video: Wrap OpenGL work in ifdefs.
...
Apparently the rest of SDL_GL_CreateContext compiles on platforms without
OpenGL, though! :)
2026-02-06 14:00:19 -05:00
Ryan C. Gordon
9f5747ccd4
video: Respect SDL_HINT_OPENGL_FORCE_SRGB_CAPABLE with GL_FRAMEBUFFER_SRGB.
...
Reference Issue #14898 .
2026-02-06 13:54:32 -05:00
Ryan C. Gordon
01689bca0e
video: Maybe fix build.
2026-02-06 13:50:27 -05:00
Ryan C. Gordon
083c6b8872
video: Force GL_FRAMEBUFFER_SRGB state at OpenGL context creation time.
...
The default varies between OpenGL and OpenGL ES, so try to force it to what
the app actually requested with SDL_GL_FRAMEBUFFER_SRGB_CAPABLE.
Fixes #14898 .
2026-02-06 13:44:21 -05:00
Jari Vetoniemi
ef41e0a0f0
cocoawindow: fix wrong content scale with ANGLE EGL context
...
ANGLE expects that the surface layer content scale is updated
accordingly.
<b406401e42/src/libANGLE/renderer/metal/SurfaceMtl.mm (L597-L636) >
2026-02-06 09:16:59 -08:00
Ryan C. Gordon
50f3adec77
cocoa: Fix SDL_HINT_VIDEO_MAC_FULLSCREEN_SPACES=0.
...
This hint is documented to not just turn off fullscreen windows going into a
new Fullscreen Space, but also to make the green button on a resizeable
window's title bar do a maximize/zoom instead of make the window fullscreen.
Previously, this only did the former and not the latter (or perhaps it worked
and the defaults changed in a newer macOS, we aren't sure).
Fixes #7470 .
2026-02-05 18:39:48 -05:00
Sam Lantinga
b9743eabdd
Removed spurious "extern"
2026-02-05 14:07:01 -08:00
Ryan C. Gordon
632c83b722
opengl: added SDL_HINT_OPENGL_FORCE_SRGB_CAPABLE.
...
Reference Issue #14898 .
2026-02-05 15:14:18 -05:00
Sam Lantinga
bddf6d3e2a
Guarantee that pens are in proximity before motion and button events
...
This also delays pen proximity out events to make sure that the pen is really gone before delivering them. On Android, you get a HOVER_EXIT event when the pen contacts the surface, which we don't want to treat as the pen leaving proximity.
2026-02-05 10:24:04 -08:00
Sam Lantinga
cd7fc90c87
Added support for the third stylus button on Android
2026-02-05 10:24:04 -08:00
Frank Praznik
bd472b43f5
wayland: Only use owned surface data when processing touches
...
Otherwise, user data set externally may be treated as SDL window data.
2026-02-04 14:28:30 -05:00
Sam Lantinga
230286447e
Fixed Raspberry Pi build
2026-02-03 11:13:33 -08:00
Ryan C. Gordon
a6c0052f39
srgb: Readd WGL/GLX extension checks when asking for sRGB-capable framebuffers.
...
Reference Issue #14898 .
2026-02-03 13:27:57 -05:00
Ryan C. Gordon
2b5ebb1170
Revert "opengl: Fixes for sRGB framebuffer support."
...
This reverts commit d62f141b29 .
Reference Issue #14898 .
2026-02-03 13:27:56 -05:00
Ryan C. Gordon
7bc93da555
Revert "wgl: Added debug code for sRGB issues."
...
This reverts commit 8c0ac97b0d .
Reference Issue #14898 .
2026-02-03 13:27:56 -05:00
Cameron Cawley
f8331d50ff
Simplify SDL_GL_EGL_PLATFORM handling
2026-02-03 09:45:19 -08:00
Cameron Cawley
eceb35c96c
Add VIDEO_DEVICE_CAPS_SLOW_FRAMEBUFFER and move detection to video drivers ( #14817 )
2026-02-03 09:38:02 -08:00
Anonymous Maarten
28ea4a8e31
surface: verify surface palette in SDL_Save(BMP|PNG) before hitting the FS
2026-02-03 09:31:57 -08:00
Ryan C. Gordon
bb6ced6fc0
emscripten: Cleanup some wasm32/wasm64 ifdefs.
...
Fixes #14066 .
2026-02-02 19:21:42 -05:00
Ryan C. Gordon
7d093940a7
emscripten: Unify creation of Module['SDL3'] in at SDL_Init time.
2026-02-02 19:21:42 -05:00
Cameron Cawley
12f97dbc97
egl: Make GLESv1 and v2 shared objects optional
2026-02-02 14:09:17 -08:00
Ryan C. Gordon
8c0ac97b0d
wgl: Added debug code for sRGB issues.
2026-02-02 17:03:22 -05:00
eleir9268
a029709f68
QNX: support Wayland backend. ( #14950 )
...
Co-authored-by: Aaron Bassett <abassett@qnx.com >
Co-authored-by: Felix Xing <fxing@qnx.com >
2026-02-02 09:02:31 -08:00
eleir9268
f4a541682a
Up-to-date QNX support ( #14806 )
...
Co-authored-by: Roberto Speranza <rsperanza@qnx.com >
Co-authored-by: Darcy Phipps <dphipps@qnx.com >
Co-authored-by: Pierce McKinnon <pimckinnon@qnx.com >
2026-01-30 15:32:43 -08:00
Aaron Benjamin
9a91d7236a
GPU: OpenXR integration ( #14837 )
...
Based on Beyley's initial draft in #11601 .
Co-authored-by: Beyley Cardellio <ep1cm1n10n123@gmail.com >
Co-authored-by: Ethan Lee <flibitijibibo@gmail.com >
2026-01-30 17:18:51 -05:00
Eddy Jansson
23fec649c2
Fix typos in comments.
2026-01-30 07:25:02 -08:00
Anonymous Maarten
ac4f852a6a
stb_image: use SDL_TARGETING("sse2") macro for supporting intrinsics on 386
2026-01-25 18:34:10 +01:00
Anonymous Maarten
0457891d50
stb_image: use SDL_HasSSE2 and <SDL3/SDL_intrin.h> macro's for SSE2 detection
2026-01-25 18:34:10 +01:00
Eddy Jansson
248223592a
More prefer SDL_zero*()
...
Transform clearing of arrays into SDL_zeroa(), and
clearing through a T* with size(T) into SDL_zerop().
Extends commit 83fb7b6636 .
2026-01-23 16:02:16 -08:00