Gokul Mittal
8d2b6c09c5
undefine ADD_TRIANGLE macro definition
...
ADD_TRIANGLE macro function in SDL_RenderLines() was never being undefined even after it's purpose was resolved.
2026-02-15 08:37:46 -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
fc570a1a1c
render: opengl and opengles2 renderers try to disable GL_FRAMEBUFFER_SRGB.
...
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
Sam Lantinga
c381b2bdfa
Use 20 ms as the default audio buffer size on Android
...
It turns out that Android will not pick a low latency buffer size by default.
2026-02-13 14:34:31 -08:00
Sam Lantinga
ab50f30bb1
Added code to detect memory overwrites on Windows
...
Define WIN32_DETECT_OVERWRITE while building to enable this functionality.
2026-02-13 13:53:25 -08:00
DominusExult
e049fff360
Fix testime to pass window coordinates to SDL_SetTextInputArea().
...
Also moved the area closer to the bottom so the panning of the screen can be observed on Android and iOS.
2026-02-13 08:22:44 -08:00
Rachel Blackman
46e553a44c
Add support for new Steam Controller on Android ( #15044 )
2026-02-12 17:39:15 -08:00
Sam Lantinga
f1dd6db701
Removed unnecessary log message
2026-02-12 16:41:07 -08:00
Sam Lantinga
79f5f674bd
Use the correct report format for BLE Steam Controller reports
2026-02-12 16:02:21 -08:00
Sam Lantinga
7b27056ea0
Fixed Steam Controller BLE report size
2026-02-12 15:52:31 -08:00
Sam Lantinga
9b7f55be89
Make sure we report ID_TRITON_CONTROLLER_STATE_BLE on iOS
2026-02-12 15:49:49 -08:00
Sam Lantinga
0b1c592fda
Steam Controller report 0x45 is used for BLE mode
2026-02-12 15:45:10 -08:00
Sam Lantinga
84c21cf970
Updated Steam Controller packet handling
2026-02-12 14:34:20 -08:00
Sam Lantinga
4e2fd57e77
Fixed initializing the PowerA OPS v1 Wireless Controller
2026-02-11 16:54:18 -08:00
Sam Lantinga
2b484a1ccb
Fixed initializing the PowerA Fusion Pro 4 on Steam Link hardware
2026-02-11 16:54:18 -08:00
Ryan C. Gordon
ac3afa1f38
audio: Moved a variable into nested scope where it's actually used.
2026-02-11 14:54:49 -05:00
Sam Lantinga
eaeca340f3
Fixed HIDAPI hotplug detection in applications that don't initialize video
2026-02-11 09:11:37 -08:00
Sam Lantinga
d3f9899df5
Fixed HIDAPI hotplug detection when initializing gamepads off the main thread
2026-02-11 09:03:30 -08:00
Sam Lantinga
e134d6fd7e
Added a note about SDL_HINT_AUTO_UPDATE_JOYSTICKS to the SDL_UpdateJoysticks() docs
2026-02-11 09:03:30 -08:00
SDL Wiki Bot
73500019ea
Sync SDL3 wiki -> header
...
[ci skip]
2026-02-11 14:33:15 +00:00
chenzw
85c297a28b
Added IMU support for GameSir controllers with optimized sampling rate and timestamp synchronization.
2026-02-10 21:06:40 -08:00
walle
6f1aa78e04
fixed trigger axes formula: data * 257 - 32768 (same as PS4)
2026-02-10 21:06:40 -08:00
walle
226057601f
fixed Clamp -(-32768) to 32767 to avoid Sint16 overflow wrapping back to -32768
2026-02-10 21:06:40 -08:00
chenzw
304fcaeec2
SendGameSirModeSwitch code cleanup
2026-02-10 21:06:40 -08:00
chenzw
6ae268ba17
Remove GameSir-G7 Pro
2026-02-10 21:06:40 -08:00
SDL Wiki Bot
d2ca570050
Sync SDL3 wiki -> header
...
[ci skip]
2026-02-11 02:41:57 +00:00
Sam Lantinga
71f4af7322
Eliminate contention between HIDAPI controller reads and writes
...
Rumble can often take a long time, and it is theoretically safe to simultaneously read and write hidapi devices on all platforms.
Fixes https://github.com/libsdl-org/SDL/issues/9441
2026-02-10 09:38:19 -08:00
Ryan C. Gordon
31404a9dcb
wasapi: Patched to compile.
2026-02-10 11:21:04 -05:00
Sylvain
a35bcad0be
Android: prevent SDLActivity and Main Thread to access mJoystick at the
...
same time. same for mHapticHandler
2026-02-10 07:53:29 -08:00
SDL Wiki Bot
6f45f97af0
Sync SDL3 wiki -> header
...
[ci skip]
2026-02-10 15:51:32 +00:00
Ryan C. Gordon
c223c5494d
wasapi: stop infinite loop in audio thread when recording device is unplugged.
...
(cherry picked from commit a806a9092b )
2026-02-10 09:25:40 -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
Sam Lantinga
9f8c70713a
Fix the 8BitDo Ultimate 2D Wireless Controller showing up multiple times
...
This controller has 3 interfaces, one for the Xbox gamepad protocol, and two HID interfaces. We should only handle the Xbox interface in the Xbox driver.
2026-02-09 13:28:45 -08: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
Sam Lantinga
6feb0e1333
You can't combine SDL_STRINGIFY_ARG() and SDL_FUNCTION
...
Removed obsolete documentation that shows this usage and macros that attempt it.
Also allow SDL_FUNCTION to be redefined by the application.
Fixes https://github.com/libsdl-org/SDL/issues/15004
2026-02-08 11:51:34 -08:00
Cameron Gutman
1d83a35e48
cocoa: Fix 1px border in fullscreen on Tahoe
2026-02-08 11:01:23 -08:00
Sam Lantinga
4de62c35c0
Fixed checking against cached shader params (thanks @ccawley2011!)
2026-02-08 10:59:18 -08:00
Max Seidenstücker
0c121ad6a7
conditional expression is constant
...
MSVC: C4127: conditional expression is constant
2026-02-08 09:38:35 -08:00
Max Seidenstücker
d063cb01e9
variable conditionally uninitialized
...
currentX and currentY in L2263-L2264 are marked as conditionally uninitialized by MSVC and Clang
Clang: variable may be uninitialized when used here [-Wconditional-uninitialized]
2026-02-08 09:35:07 -08:00
William Horvath
8ee7dc2f9f
dummyaudio: Remove bitrotted support for __EMSCRIPTEN_PTHREADS__ code path.
...
In SDL_audio.c:OpenPhysicalAudioDevice, an attempt is made to SDL_CreateThread
if ProvidesOwnCallbackThread is false, but SDL_CreateThreadWithPropertiesRuntime
is not implemented for Emscripten, so this always fails. I'm not sure if/when
this ever worked, but it simply cannot work in its current state.
2026-02-08 09:31:13 -08:00
RaceTheMaSe
c15ca27740
dialog_utils: fix NameTransform() function pointer type ( #15002 )
2026-02-07 23:23:47 +03: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
ROllerozxa
3919cc902e
Fix SDL_TriggerBreakpoint being undefined on slimcc
2026-02-07 21:11:54 +03:00
RaceTheMaSe
ba3274e3a1
hidapi, windows: Fix -Wjump-misses-init warning ( #14990 )
...
Clang: jump from this goto statement to its label is incompatible with C++ [-Wjump-misses-init]
2026-02-07 21:10:50 +03:00
RaceTheMaSe
7c7ffb9115
tests: Fix unreachable code warnings ( #14993 )
2026-02-07 20:42:59 +03:00
RaceTheMaSe
863912aa03
PS2, VITA: Fix void pointer arithmetic warnings ( #14995 )
2026-02-07 20:39:33 +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