WillyJL
4eff36ef53
SDL3 GPU: Fix -Wbool-conversion warnings
2025-06-29 13:32:21 -04:00
Susko3
923813b399
Disable SDL_DYNAMIC_API when using ReSharper
2025-06-29 12:37:56 -04:00
Ryan C. Gordon
4217d62fa2
Some small fixes and corrections: comment typos, a wrong return value.
...
Just a few things I stumbled upon this week.
2025-06-29 03:07:51 -04:00
SDL Wiki Bot
34928341d0
Sync SDL3 wiki -> header
...
[ci skip]
2025-06-28 12:31:32 +00:00
Aubrey Hesselgren
e960bf6904
Gyro instrumentation for test controller ( #13287 )
...
This adds several minor changes to the gyro instruments.
* The HID Sensor Time display is now throttled to 10hz.
* Calibration for the gyro is now time based, not sample count based. Different polling rates will have drift calibrated over the same space of time.
* Pitch/Yaw/Roll readout: Yaw is prioritized, and then pitch, and then roll. This gives a more human-readable pitch/yaw/roll display, closely matching game engines.
* Pitch/Yaw/Roll text is colorized to match the axes in the 3D gizmo.
* Added set of axes to the 3D gizmo to show the "Left Hand Space" positive axis directions.
2025-06-26 19:56:06 -07:00
Anonymous Maarten
89eef1bd34
cmake: Android always needs a native HIDAPI implementation
2025-06-26 22:34:30 +00:00
Ryan C. Gordon
279dabfc96
cocoa: Don't use trick of briefly focusing the Dock on newer macOS releases.
...
On newer systems, the trick isn't necessary, and if you do it, if the user is
moving the mouse when launching the app, it'll show a hidden Dock.
Fixes #10340 .
2025-06-26 14:24:53 -04:00
Sam Lantinga
afa27243df
Ignore sensor delta values that look like they're out of range
2025-06-26 11:10:21 -07:00
Caleb Heuer
cd98b66114
Allow overriding SDL_FORK_MESSAGEBOX in build environment
2025-06-26 10:49:31 -07:00
Sam Lantinga
8d5bf053f7
Fixed detecting 8BitDo sensor timestamp on older firmware
...
Also updated the reported sensor rate over USB for new firmware
2025-06-26 10:47:35 -07:00
Frank Praznik
0ac1241b7a
x11: Always update the borders on frame extent events
...
Always update the border sizes on frame extent events, or they can incorrectly still be zero if followed by a PropertyNotify event when leaving fullscreen.
Fixes sending the correct restored window size when leaving fullscreen in fvwm.
2025-06-26 11:52:43 -04:00
Sam Lantinga
f40bf44928
Removed unnecessary include
2025-06-25 18:50:28 -07:00
8BitDo
6d3e8b749e
add 8BitDo Controller sensor_timestamp ( #13278 )
2025-06-25 18:49:43 -07:00
Sam Lantinga
727b4924c8
Update the viewport when logical presentation changes
...
Fixes https://github.com/libsdl-org/SDL/issues/13256
2025-06-25 09:58:30 -07:00
Paul Vick
de6a23028a
Fix #13276 : Crash in SDL_GetAudioDeviceChannelMap
2025-06-25 07:47:55 -04:00
Vicki Pfau
8442d4f0f7
joystick: Add support Xbox Adaptive Controller
...
The Xbox Adaptive Controller reports the pressed guide button state as 2
instead of 1. This is contrary to the spec, but it's needed for the guide
button to work.
This also adds a bit more documentation on observed-but-not-known GUIDs.
2025-06-24 16:51:18 -07:00
Petar Popovic
3cd979b353
SDL_render.h: enum SDL_TextureAddressMode: Removed trailing comma
2025-06-24 21:56:20 +03:00
Rémi Verschelde
db3a35e9bc
joystick: Fix MSVC errors C2099 with /fp:strict
2025-06-24 06:58:24 -07:00
Sam Lantinga
9ed83e71f6
Fixed memory leaks in KMSDRM property handling
...
Also cleaned up the code for consistency so it's easy to see memory leaks here.
2025-06-22 21:33:52 -07:00
SDL Wiki Bot
603118c340
Sync SDL3 wiki -> header
...
[ci skip]
2025-06-23 04:18:24 +00:00
Sam Lantinga
aa4f916b71
Renamed SDL_PROP_AUDIOSTREAM_KEEP_ON_SHUTDOWN_BOOLEAN to SDL_PROP_AUDIOSTREAM_AUTO_CLEANUP_BOOLEAN
2025-06-22 21:17:06 -07:00
SDL Wiki Bot
6cfe211142
Sync SDL3 wiki -> header
...
[ci skip]
2025-06-23 04:07:09 +00:00
Ryan C. Gordon
274aa0242e
audio: Let apps save an audio stream from destruction during SDL_Quit(). ( #13244 )
...
This is a special-case piece of functionality, generally these are expected
to go away during shutdown, but maybe someone is switching between audio
subsystems or something...
2025-06-22 21:06:15 -07:00
Ozkan Sezer
af8bee2dd1
alsa: change an SDL_LogError into SDL_LogDebug.
...
it is informational only and seeing ERROR on the terminal was confusing
2025-06-22 21:04:44 -07:00
Marcin Serwin
bbc674b9e7
test: Fix resource paths in testtray
...
Signed-off-by: Marcin Serwin <marcin@serwin.dev >
2025-06-22 21:03:37 -07:00
mitchellcairns
796961acec
Resolve bug for calibration Nintendo Switch Pro Controller ( #13260 )
...
Resolves a bug which prevents the stored calibration data from loading, only allowing loading of factory-installed calibration data
2025-06-22 20:59:15 -07:00
Mitch Cairns
3a6f9e01f8
Fixed Nintendo Switch thumbstick calibration
2025-06-22 15:26:49 -07:00
Sam Lantinga
038a3806eb
Fixed Nintendo Switch Pro thumbstick calibration
...
Fixes https://github.com/libsdl-org/SDL/issues/13246
2025-06-21 19:55:05 -07:00
Sam Lantinga
e6c2649afc
Updated testffmpeg for ffmpeg 7.1
2025-06-21 08:48:40 -07:00
Sasha Szpakowski
e80d084766
expose events originating from a live-resize set the data1 field to 1.
...
Fixes #13243 .
2025-06-21 07:33:25 -07:00
Josh Dowell
6aedc488d3
win32: Invalidate window message mouse button flags when reading buttons from raw input or GameInput
...
SDL2 would set a high bit in the mouse button flags to indicate when raw input had been read from, without this, if you hold down a mouse button and left raw input mode (leaving relative mode) the button would remain partially stuck, and would require two clicks to start producing mouse down events again.
SDL3's raw input code was refactored to not use the mouse button flags, but forgot to invalidate the flags, causing this bug to manifest.
2025-06-21 07:28:14 -07:00
Ozkan Sezer
81e3066303
hidapi/libusb: disable C5287 warning in MSVC builds
...
A quick search implies that it is a bogus warning:
https://www.google.com/search?q=visual+studio+C5287
2025-06-21 07:15:53 -07:00
Sam Lantinga
7d9fd48557
alsa: recover from snd_pcm_avail() returning -EPIPE
2025-06-20 16:33:30 -07:00
Sam Lantinga
e68f5ca99a
alsa: use udev if available instead of a hotplug thread
...
This makes detecting audio device changes more responsive.
2025-06-20 19:19:31 -04:00
Sam Lantinga
051ce0ff89
alsa: fixed disconnecting the microphone when opened
...
Some devices take some time for data to become available, so we'll keep waiting as long as necessary for them to provide data.
2025-06-20 19:19:31 -04:00
Wohlstand
5fcc83d93b
Vita Render: Limit the scope of cliprect to viewport
...
Don't allow cliprect be larger than viewport's scope
(cherry picked from commit 6701f938f7
)
# Conflicts:
# src/render/vitagxm/SDL_render_vita_gxm.c
2025-06-20 14:51:16 -07:00
Wohlstand
1bd5110ff0
Vita: Fixed absence of clipping when viewport is set
...
#13034
(cherry picked from commit 1c09a7117a
)
# Conflicts:
# src/render/vitagxm/SDL_render_vita_gxm.c
# src/render/vitagxm/SDL_render_vita_gxm_types.h
2025-06-20 14:51:16 -07:00
Ryan C. Gordon
eb04219efe
audio: Enumerating audio devices will skip zombie devices still in the hash.
2025-06-20 17:37:39 -04:00
SDL Wiki Bot
d06b6e42d2
Sync SDL3 wiki -> header
...
[ci skip]
2025-06-20 21:02:26 +00:00
Sam Lantinga
c19ad189dc
Clarify that SDL_GetAudioStreamDevice() returns the logical device.
2025-06-20 14:01:16 -07:00
Sam Lantinga
7882e60f0e
Don't log an error for disconnected audio devices
2025-06-20 11:05:08 -07:00
Lilian Gimenez
e4e29b8601
Fix support for F21 to F24 scancodes on Linux
2025-06-20 09:06:57 -07:00
Sam Lantinga
d7939abf42
Use consistent style for pointer declarations and casts
2025-06-18 10:03:44 -07:00
Frank Praznik
390fe65323
test: Fix a window parenting bug in testmodal
2025-06-18 09:26:09 -04:00
Frank Praznik
ca9b7c8ea3
video: Explicitly disallow setting the parent of a window to itself
...
Doing so causes a cycle in the window hierarchy tree graph, which leads to infinite recursion when destroying the windows.
2025-06-18 09:26:08 -04:00
Ryan C. Gordon
c04624972e
alsa: Simplify ALSA_WaitDevice.
...
- Check for specific availability instead of waiting for "device ready."
- Don't use snd_pcm_wait, just use a simple SDL_Delay (nothing to recover).
- Fixed SDL_max call that should have been SDL_min (now using SDL_clamp).
- ALSA_RecordDevice() now returns 0 if no availability, which kicks us back
to WaitDevice to try again, as an extra safety check.
2025-06-17 20:40:00 -04:00
Ryan C. Gordon
b4ac5f43f5
include: Fixed copy/paste error in endian-specific SDL_Read function docs.
2025-06-17 16:41:24 -04:00
Ryan C. Gordon
3896b1b3f4
wikiheaders: Let each subproject specify how to find their property symbols.
2025-06-17 16:41:24 -04:00
Sam Lantinga
efed3c63b3
Added support for an alternate version of the Vader 4 Pro
2025-06-17 10:02:10 -07:00
Sam Lantinga
d6bae53341
Added support for an alternate version of the Vader 4 Pro
2025-06-17 08:07:12 -07:00