Frank Praznik
6e5994db76
docs: Update Wayland documentation
...
Note that windows may not report the minimized state, and update the cursor warp documentation to note the newly supported protocol.
2025-08-27 11:26:43 -04:00
Sam Lantinga
da6e9bbf7c
Allow building the tray subsystem without the video subsystem
...
Fixes https://github.com/libsdl-org/SDL/issues/13235
2025-08-27 08:15:24 -07:00
SDL Wiki Bot
943d0f67ba
Sync SDL3 wiki -> header
...
[ci skip]
2025-08-27 13:46:21 +00:00
Sam Lantinga
42f634ff7a
Added SDL_AddAtomicU32()
...
Fixes https://github.com/libsdl-org/SDL/issues/13496
2025-08-27 06:44:51 -07:00
Marcus Harrison
b795762b62
Small fix for snake example ( #13790 )
...
Rename THREE_BITS to SNAKE_CELL_SET_BITS
Make SNAKE_CELL_SET_BITS depend on SNAKE_CELL_MAX_BITS
2025-08-27 05:16:24 -07:00
Jaan Soulier
0bbdd86b86
Fix device suitability checks in Vulkan GPU backend to always adhere to priority arrays
2025-08-27 05:15:24 -07:00
Sylvain
26d6352500
Fixed bug #13794 : prevent to use the onBackPressed callback API that is enabled on API36
2025-08-27 11:39:00 +02:00
Sam Lantinga
5291e9bbbd
Minor cleanup
2025-08-26 19:28:59 -07:00
Frank Praznik
5a06ef5c8f
keyboard: Don't clear the keymap when it is set to auto release
...
Don't unset the keymap when it is set to auto release, or it will infinitely recurse.
2025-08-26 22:16:21 -04:00
Sylvain
e55f636d1e
Android: improve check to know if running on ChromeBook or emulator.
...
https://stackoverflow.com/questions/39784415/how-to-detect-programmatically-if-android-app-is-running-in-chrome-book-or-in
2025-08-26 17:43:58 -07:00
takase1121
95c44dcdc3
process(windows): fallback to GenerateConsoleCtrlEvent and TerminateProcess if necessary
2025-08-26 17:01:37 -07:00
takase1121
c709b8ed98
process(windows): try sending WM_CLOSE for graceful process termination
2025-08-26 17:01:37 -07:00
Semphris
355c001a54
Implement IFileDialog for Windows
2025-08-26 16:48:08 -07:00
SDL Wiki Bot
15e60cd37f
Sync SDL3 wiki -> header
...
[ci skip]
2025-08-26 18:55:26 +00:00
Ryan C. Gordon
5b688514c7
wikiheaders: Don't autolink things that are already linked.
...
This is a dirty hack, but it currently works for our purposes. We just refuse
to link an eligible string (like, say...`SDL_shadercross`), if there's a '['
character right before it.
This WILL NOT WORK if the string is in the middle of a link! For example, if
you had `[please refer to SDL_shadercross](https://example.com/ )`, this will
still fail in the usual ways, but we're not building out a robust parser here
at the moment, and this catches the most common problem.
Fixes #13160 .
Fixes https://github.com/libsdl-org/sdlwiki/issues/752
Closes https://github.com/libsdl-org/sdlwiki/pull/725
2025-08-26 14:43:59 -04:00
Frank Praznik
6516f7a9e8
keyboard: Release bound keymaps during the destruction process
...
If a bound keymap is being destroyed, unbind it to ensure that the keyboard state won't be left pointing to an invalid keymap. Backends now no longer need to manually do this when destroying keymaps during keyboard removal and shutdown.
2025-08-26 12:56:29 -04:00
Frank Praznik
f53f054fd6
x11: Enable the relative mouse system scale hint.
...
Use the scaled motion values if the relative system scale hint is set, and a custom transformation function is not set.
2025-08-26 11:55:02 -04:00
Sam Lantinga
065fdca953
Disable rumble for the Ultimate 2 Wireless Controller in dongle mode
...
The dongle appears to stop sending input reports with some combination of rumble patterns, easily reproduced with Forza Horizon 5. We'll disable rumble temporarily until @8BitDo can investigate.
2025-08-26 08:39:00 -07:00
Sam Lantinga
66ab91a314
Added SDL_FLIP_HORIZONTAL_AND_VERTICAL
...
Closes https://github.com/libsdl-org/SDL/pull/13788
2025-08-26 05:50:51 -07:00
Nintorch
1fbed16cb0
Add Emscripten joystick rumble support
...
Adds support for Emscripten (Web) joystick rumble support via EM_ASM_INT macros and HTML5's Gamepad API.
2025-08-25 12:58:59 -07:00
Sam Lantinga
b13416d74f
Fixed relative motion having desktop mouse scale on Wayland
...
Fixes https://github.com/libsdl-org/SDL/issues/13753
2025-08-25 11:47:56 -07:00
Merlyn Morgan-Graham
385715c0dd
Introduce enum for SDL_GetCameraPermissionState result
2025-08-25 14:43:31 -04:00
Colin Kinloch
5be08481e1
dialog: Print DBus errors where available
2025-08-25 11:35:47 -07:00
Colin Kinloch
c79a18d0fa
dialog: Fix save file chooser with xdg portal
...
This correctly sets the xdg portal fields for targeting a specific
new filename or existing file.
"current_name" sets the dialogs placeholder name.
"current_file" targets an existing file.
"current_folder" for when the target is a folder.
2025-08-25 11:35:47 -07:00
Nintorch
1af7dfb0a7
Allow Android to ignore unnecessary joysticks
...
Previously, SDL_ShouldIgnoreJoystick wasn't being called for Android, and fingerprint sensors were recognized as joysticks.
2025-08-25 11:23:14 -07:00
Colin Kinloch
81920b5db7
testffmpeg: avutil queue family version check
...
The `AVVulkanDeviceQueueFamily` struct was introduced by libavutil
59.34.100
2025-08-25 11:10:15 -07:00
Ryan C. Gordon
8f04e4af00
audio: Clean out all the bitshifting.
...
Hide the implementation details in something human-readable.
2025-08-25 13:10:51 -04:00
Ryan C. Gordon
01d94ca9de
audio: Renamed device_hash_lock to subsystem_rwlock.
...
It protects more than the device hashes!
2025-08-25 13:10:51 -04:00
Ryan C. Gordon
226fecff78
audio: Split current_audio.device_hash into two separate hashtables.
...
One for physical devices, one for logical devices.
Fixes #13032 .
2025-08-25 13:10:51 -04:00
Sam Lantinga
7bbbbb3a1c
Fixed build
2025-08-25 09:45:39 -07:00
Sam Lantinga
aab95894a6
Fixed crash if mouse functions are used after video quit
2025-08-25 08:54:43 -07:00
ceski
270737584e
Fix vsync-off support for direct3d11
2025-08-24 21:33:02 +03:00
Ethan Lee
0fcaf47658
gpu: D3D12 only requires feature level 11_0 with Resource Binding Tier 2.
...
We previously thought this wasn't possible because constant buffer offsets and
partial updates were unavailable, but we were reading the wrong table - this is
only the case for D3D11...
https://learn.microsoft.com/en-us/windows/win32/direct3d11/overviews-direct3d-11-devices-downlevel-intro
... while 12 doesn't list this feature at all:
https://learn.microsoft.com/en-us/windows/win32/direct3d12/hardware-feature-levels
We double checked and Jesse Natalie confirmed that this feature is required for
D3D12 even for 11_0 drivers. (Thanks Jesse!)
Additionally, D3D12 requires that UAVs are accessible from all shader stages,
meaning Tier 2 is enough to support the number of UAVs we need. Tier 1 could be
a property to lower the requirements, but that can be done later.
2025-08-22 15:46:05 -04:00
Merlyn Morgan-Graham
dee2414ee7
Fix typo in SDL_power doc comment
2025-08-21 08:40:57 +03:00
arnau.nau
ee5e249008
Docs fix for SDL_stdinc.h: floor,floorf,ceil,ceilf
2025-08-20 18:01:46 -04:00
SDL Wiki Bot
0b082b25b2
Sync SDL3 wiki -> header
...
[ci skip]
2025-08-19 20:39:22 +00:00
Wilson Jallet
03b14f5211
GPU: Fix Vulkan indexing error for resolve attachment refs ( #13768 )
2025-08-19 12:10:55 -07:00
SDL Wiki Bot
e3db7f83c2
Sync SDL3 wiki -> header
...
[ci skip]
2025-08-19 04:41:07 +00:00
suleyth
bad7075de8
Only add VRAM to deviceRank if asking for a high performance device, and if the device already meets all the requirements.
2025-08-17 23:17:37 -04:00
suleyth
618f85fafe
Make deviceRank an Uint64 to avoid potential overflow issues in case of future GPUs with huge VRAM
2025-08-17 23:17:37 -04:00
suleyth
c5b79e5f1b
Pick dedicated GPU with highest VRAM
2025-08-17 23:17:37 -04:00
Sam Lantinga
5f77da3a50
x11: use raw values for relative mouse motion
...
Fixes https://github.com/libsdl-org/SDL/issues/13743
2025-08-14 19:30:54 -07:00
Sam Lantinga
fe16c620d8
Fix crash when enumerating Steam Controllers
...
Closes https://github.com/libsdl-org/SDL/pull/13746
2025-08-14 14:49:04 -07:00
Sam Lantinga
2d855e12d2
Fixed style
2025-08-14 14:48:58 -07:00
Sam Lantinga
20df88a85b
Fixed spacing
2025-08-14 14:44:56 -07:00
Sam Lantinga
e11110400a
Fixed crash when reinitializing video on X11
...
The keyboard keymap was left pointing at a freed keymap after X11_QuitKeyboard()
2025-08-14 13:41:40 -07:00
Joshua T. Fisher
f053be22be
Improve CMake for IDE Projects (Visual Studio) ( #13704 )
2025-08-14 08:19:14 -07:00
Sam Lantinga
f934b3e066
x11: fixed creating a window when all displays are disconnected
...
The X server maintains the desktop, but XRandR sends disconnect notifications for all displays. In this case fall back to the generic X11 desktop as a display.
2025-08-13 19:44:13 -07:00
Sam Lantinga
eeae48464e
Fixed crash if X11 initialization fails
2025-08-13 19:44:13 -07:00
Petar Popovic
45feacf608
emscripten tests: fix warning: uninitialized variable
2025-08-13 17:00:45 -07:00