Ryan C. Gordon
89408a9705
wasapi: ResetWasapiDevice no longer blocks on management thread.
...
It just proxies all its necessary releases and frees to these without
blocking, and sets the appropriate fields to NULL so they can be used again
immediately, regardless of when the old stuff actually gets released.
2023-11-09 20:27:58 -05:00
Ryan C. Gordon
aa7baf63aa
Sync wiki -> headers.
2023-11-09 20:11:23 -05:00
Frank Praznik
74f3643bfa
wayland: Add missing break to switch statement
2023-11-09 19:48:56 -05:00
Anonymous Maarten
2d6bae70b4
Older gcc does not support #pragma GCC diagnostic inside functions
2023-11-09 23:33:28 +01:00
Sylvain
d8600f717e
Pointer as bool (libsdl-org#7214)
2023-11-09 14:18:36 -08:00
Anonymous Maarten
23db971681
x11: Ignore deprecated declaration of XKeycodeToKeysym
2023-11-09 18:45:54 +01:00
Anonymous Maarten
61c39ce848
ci: re-enable Intel compilers on ci
2023-11-09 18:05:15 +01:00
Sam Lantinga
4ac3f5c07e
Updated Xcode project with the video capture API
2023-11-09 09:01:29 -08:00
Sylvain
59f93e20a7
Add SDL Video Capture, with back-end for linux/macos/ios/android
2023-11-09 08:36:23 -08:00
Sam Lantinga
3ab98a3572
Removed debug print statements (thanks @stsp!)
2023-11-08 20:43:44 -08:00
Sam Lantinga
f4b61fff30
Implemented VT switching for KMSDRM on Linux
...
Fixes https://github.com/libsdl-org/SDL/issues/3844
2023-11-08 20:35:16 -08:00
Anonymous Maarten
391a3d23d0
cmake: the compile-time pdb does not have a suffix, if set
2023-11-09 03:28:20 +01:00
Anonymous Maarten
a6541166bc
cmake: also install pdb files of static libraries
2023-11-09 02:17:07 +01:00
Anonymous Maarten
2e3f574f8f
cmake: don't add the C runtime library to the .obj file (when using MSVC)
...
Using /Zl, the obj files will no longer add a link requirement to the C
runtime libraries. Meanwhile, also add /NODEFAULTLIB for non-UWP MSVC
toolchains.
Because /Zl is a compile option, it can also be used when building a
static SDL3 library, and SDL3_test.
2023-11-09 02:10:58 +01:00
Sam Lantinga
bea34c5380
Fixed a memory leak at window creation.
...
Windows updates the desktop display mode once at video init (in WIN_InitModes()) and once when creating a window (in WIN_RefreshDisplays())
Fixes https://github.com/libsdl-org/SDL/issues/7982
Fixes https://github.com/libsdl-org/SDL/issues/8189
2023-11-08 14:26:07 -08:00
Sam Lantinga
b5347c3364
Fixed emscripten and iOS builds
2023-11-08 14:14:41 -08:00
Sam Lantinga
02f356439d
Allow the application to draw while Windows is in a modal move/resize loop
...
If you're using the application main callbacks, your SDL_AppIterate() function will be called while Windows is moving and resizing your window. If not, then SDL will send an SDL_EVENT_WINDOW_EXPOSED event for your window and you can use an event watcher to redraw your window directly from the callback.
Fixes https://github.com/libsdl-org/SDL/issues/1059
Closes https://github.com/libsdl-org/SDL/pull/4836
2023-11-08 13:32:56 -08:00
Sam Lantinga
1934417b4d
Show the existing mapping when a controller is connected
2023-11-08 12:38:54 -08:00
Sam Lantinga
407a3cb4e0
Fixed infinite recursion initializing properties
2023-11-08 12:38:04 -08:00
Sam Lantinga
979214363f
Added SDL_GetGlobalProperties()
...
We'll undoubtedly want to have global properties available
2023-11-08 12:01:48 -08:00
Sam Lantinga
151cdfa99f
Added the "SDL.window.wayland.registry" property
...
Fixes https://github.com/libsdl-org/SDL/issues/8393
2023-11-08 12:01:48 -08:00
Sam Lantinga
6c91b28e71
Added the "SDL.renderer.d3d12.command_queue" property
...
Fixes https://github.com/libsdl-org/SDL/issues/8491
2023-11-08 12:01:48 -08:00
Sam Lantinga
4e8d1ec983
Fixed crash trying to create a metal view with the dummy driver
2023-11-08 12:01:48 -08:00
Sam Lantinga
fd4a2cce9e
SDL_syswm.h has been removed and replaced with window properties
2023-11-08 12:01:48 -08:00
Sam Lantinga
aea6e6de6f
Simplified SDL_SetProperty() and added SDL_SetPropertyWithCleanup()
...
Most of the time people won't need to set a cleanup callback, so we can simplify the more commonly used API.
2023-11-08 12:01:48 -08:00
Sam Lantinga
a1941fad6c
Replaced SDL_RenderGetD3D11Device(), SDL_RenderGetD3D12Device(), and SDL_RenderGetD3D9Device() with renderer properties.
2023-11-08 12:01:48 -08:00
Sam Lantinga
0cd4b7d3e3
Added display properties
2023-11-08 12:01:48 -08:00
Sam Lantinga
a02afbaea5
Clean up window properties when the window is destroyed
2023-11-08 12:01:48 -08:00
Sam Lantinga
8668943746
Standardized property names for internal SDL properties
2023-11-08 12:01:48 -08:00
Sam Lantinga
a4c6b38fef
Fixed FreeBSD build
2023-11-08 07:46:02 -08:00
Sam Lantinga
d9e6dcc650
Fixed FreeBSD build
2023-11-08 04:45:29 -08:00
Sam Lantinga
7cc3e94eb2
Store the requested muted state
2023-11-08 03:36:47 -08:00
Sam Lantinga
ce9e1bd324
Don't mute the console input if we can't read the keyboard
...
This makes sure you can hit Ctrl-C if you don't have permission to access the raw keyboard device.
Fixes https://github.com/libsdl-org/SDL/issues/4812
2023-11-08 03:29:10 -08:00
Wohlstand
0a1b6b270f
sdlchecks.cmake: Clarified the reason why shared X11 mode doesn't work
...
#6778
2023-11-08 02:57:28 -08:00
Sam Lantinga
80b2bbad21
Removed useless branch test
...
Fixes https://github.com/libsdl-org/SDL/issues/8286
(cherry picked from commit e5ccc80aba60f4132823d71ea6952c87f2392d06)
(cherry picked from commit 7e11bd1ac18855e804559ec3eb9d845e4bf30271)
2023-11-08 01:36:14 -08:00
Sam Lantinga
15bc12165a
Actually we need to enumerate the 8BitDo Xbox SKUs
...
At the point we're calling SDL_IsJoystickXboxSeriesX(), we don't know for sure that the controller is an Xbox controller.
Fixes https://github.com/libsdl-org/SDL/issues/8174
2023-11-08 00:42:42 -08:00
Sam Lantinga
8049af3355
Assume all 8BitDo Xbox controllers have a share button
...
Fixes https://github.com/libsdl-org/SDL/issues/8174
2023-11-08 00:34:50 -08:00
Sam Lantinga
ed1e0c1530
Make sure joysticks are locked when adding and removing them
...
Fixes https://github.com/libsdl-org/SDL/issues/8146
2023-11-08 00:13:16 -08:00
Sam Lantinga
415283ef38
Fixed checking for linux/input.h
2023-11-08 00:13:16 -08:00
Sam Lantinga
fea2504a37
Prioritize the pipewire audio driver over ALSA
...
ALSA is used very rarely anymore and the pipewire ALSA emulation isn't as good as using pipewire directly. The Pulseaudio emulation is very good, and Pulseaudio is still commonly available on Linux systems, so we'll default to that first and fall back to pipewire if it's not available. We'll finally try ALSA, to handle very old systems.
Fixes https://github.com/libsdl-org/SDL/issues/7541
2023-11-07 22:02:27 -08:00
Sam Lantinga
04e98d2236
Added missing calls to SDL_InvalidParamError("surface")
2023-11-07 21:57:15 -08:00
Sam Lantinga
521bbcc15e
Destroy the window surface if we've created it for the software renderer
...
Fixes https://github.com/libsdl-org/SDL/issues/8011
2023-11-07 21:44:18 -08:00
Sam Lantinga
28e623c504
Added a mapping for the Atari VCS controller connected over Bluetooth (thanks @WizzardSK!)
...
Fixes https://github.com/libsdl-org/SDL/issues/7116
2023-11-07 18:08:11 -08:00
Sam Lantinga
4106697774
Make sure we include the null terminator in XLookupStringAsUTF8()
...
Fixes https://github.com/libsdl-org/SDL/issues/6728
2023-11-07 16:24:08 -08:00
Sam Lantinga
b5057edf29
Remove unused SDL_TextureModulate enum
...
Fixes https://github.com/libsdl-org/SDL/issues/6387
2023-11-07 09:23:26 -08:00
Sam Lantinga
9458cbf75e
Removed unused SDL_OSEvent
2023-11-07 09:14:35 -08:00
Frank Praznik
1a57f6bb29
wayland: Remove QtWayland extensions
...
These were added a very long time ago and seem to serve no purpose now, as the functionality they provided is now in core Wayland protocols, current information on their usage and status is nonexistent, no modern compositor seems to support them, and the code paths are untested and subject to bit-rot at this point. It also causes duplicate symbol issues when statically linking an application to both Qt and SDL.
2023-11-07 11:00:32 -05:00
Ozkan Sezer
5f920d6639
fix emscripten build after commit 07cb7c10
2023-11-07 07:55:30 +03:00
Sam Lantinga
22016b4eae
Enable the 5th player LED on the DualSense controller
...
Fixes https://github.com/libsdl-org/SDL/issues/5152
2023-11-06 20:14:50 -08:00
Sam Lantinga
66cf30c2de
Removed misleading comment
...
Fixes https://github.com/libsdl-org/SDL/issues/5069
2023-11-06 19:33:40 -08:00